/**
 * BeefusCMS Frontend Stylesheet - Consolidated
 * Combines all CSS from video-card-component, netflix-carousel, header, and all templates
 * Version: 2.0
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --color-primary: #fce63e;
    --color-secondary: #ffc329;
    --color-accent: #ffc329;
    --color-background: #0d1e2b;
    --color-surface: #0a1620;
    --color-text: #ffffff;
    --color-text-muted: #999999;
    --color-border: #122230;
}

/* ==================== BASE STYLES ==================== */
body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--color-surface);
    padding: 2px 20px 0 20px;
    /*border-bottom: 1px solid var(--color-border);*/
}

.navbar-brand {
    color: var(--color-text);
    font-weight: bold;
    text-decoration: none;
}

.navbar-brand img{
    color: var(--color-text);
    font-weight: bold;
    text-decoration: none;
	width: 215px;
	height: 41px;
}

.navbar-brand:hover {
    color: var(--color-accent);
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-accent);
}

.form-control {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.form-control:focus {
    background: var(--color-background);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.btn-outline-danger {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline-danger:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.dropdown-menu-dark {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.dropdown-item {
    color: var(--color-text-muted);
}

.dropdown-item:hover {
    background: var(--color-background);
    color: var(--color-accent);
}

/* ==================== MINI MODELS BAR ==================== */
.mini-models-bar {
    background: var(--color-surface);
    /*padding: 8px 0;
    border-bottom: 1px solid var(--color-border);*/
    position: sticky;
    top: 0;
    z-index: 100;
}

.mini-models-container {
    position: relative;
    padding: 0 10px;
}

.mini-models-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 20px 0 20px;
    scrollbar-width: none;
}

.mini-models-scroll::-webkit-scrollbar {
    display: none;
}

.mini-model {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

.mini-model:hover {
    transform: scale(1.1);
}

.mini-model-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--color-border);
}

.mini-model:hover .mini-model-avatar {
    border-color: var(--color-accent);
}

.mini-model-name {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
	margin-top: -4px;
}

.mini-models-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
	border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
	transition: all 0.2s;
}

.mini-models-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.mini-models-arrow.left { 
    left: 0; 
}

.mini-models-arrow.right { 
    right: 0; 
}

/* ==================== VIDEO CARD COMPONENT ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
    color: var(--color-text);
}

.video-thumb-container {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    pointer-events: none;
}

.video-views {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.video-duration {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.video-info {
    padding: 10px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.uploader-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.uploader-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.uploader-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.uploader-name {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploader-name:hover {
    color: var(--color-accent);
}

.model-link {
    display: inline-block;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.model-link:hover {
    transform: scale(1.1);
}

.uploader-subscribers {
    font-size: 11px;
    color: var(--color-text-muted);
}

.video-player-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 11px;
    flex-shrink: 0;
}

.video-date {
    color: var(--color-text-muted);
}

.video-likes {
    color: var(--color-text-muted);
}

/* ==================== NETFLIX CAROUSEL ==================== */
.netflix-carousel {
    width: 100%;
    margin: 0 0 40px 0;
    position: relative;
    user-select: none;
}

.netflix-carousel-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.netflix-viewport {
    width: 92%;
    overflow: hidden;
    position: relative;
    margin: 0 4%;
}

.netflix-track {
    display: flex;
    gap: 0.5vw;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0.1, 1);
    position: relative;
    padding: 20px 0;
}

.netflix-carousel-item {
    flex: 0 0 calc(8.33% - 0.4vw);
    min-width: 0;
    transition: transform 0.3s cubic-bezier(0.5, 0, 0.1, 1);
    cursor: pointer;
    transform-origin: center center;
}

.netflix-carousel-item.shorts-item {
    flex: 0 0 calc(7.14% - 0.4vw);
}

.netflix-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(20, 20, 20, 0.5);
    color: white;
    border: none;
    width: 4%;
    min-width: 50px;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-carousel:hover .netflix-arrow {
    opacity: 1;
}

.netflix-arrow:hover {
    background: rgba(20, 20, 20, 0.8);
}

.netflix-arrow svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.netflix-arrow-left {
    left: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.7) 0%, transparent 100%);
}

.netflix-arrow-right {
    right: 0;
    background: linear-gradient(270deg, rgba(20, 20, 20, 0.7) 0%, transparent 100%);
}

.netflix-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.3 !important;
}

.netflix-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
    min-height: 12px;
}

.netflix-indicator {
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.netflix-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
}

.netflix-carousel .video-card {
    width: 100%;
    height: 100%;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.5, 0, 0.1, 1), box-shadow 0.3s ease;
}

.netflix-carousel .video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.netflix-carousel .video-info {
    padding: 10px;
    background: var(--color-surface);
}

.netflix-carousel .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.netflix-carousel::before,
.netflix-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 40px;
    width: 4%;
    z-index: 50;
    pointer-events: none;
}

.netflix-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-background, #0d1e2b) 0%, transparent 100%);
}

.netflix-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-background, #0d1e2b) 0%, transparent 100%);
}

/* Netflix Carousel Responsive Breakpoints */
@media (min-width: 2560px) {
    .netflix-carousel-item { flex: 0 0 calc(8.33% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(7.14% - 0.4vw); }
}

@media (max-width: 2559px) and (min-width: 2200px) {
    .netflix-carousel-item { flex: 0 0 calc(10% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(8.33% - 0.4vw); }
}

@media (max-width: 2199px) and (min-width: 1920px) {
    .netflix-carousel-item { flex: 0 0 calc(12.5% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(10% - 0.4vw); }
}

@media (max-width: 1919px) and (min-width: 1600px) {
    .netflix-carousel-item { flex: 0 0 calc(14.28% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(11.11% - 0.4vw); }
}

@media (max-width: 1599px) and (min-width: 1400px) {
    .netflix-carousel-item { flex: 0 0 calc(16.66% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(12.5% - 0.4vw); }
}

@media (max-width: 1399px) and (min-width: 1100px) {
    .netflix-carousel-item { flex: 0 0 calc(20% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(14.28% - 0.4vw); }
}

@media (max-width: 1099px) and (min-width: 800px) {
    .netflix-carousel-item { flex: 0 0 calc(25% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(16.66% - 0.4vw); }
}

@media (max-width: 799px) and (min-width: 600px) {
    .netflix-carousel-item { flex: 0 0 calc(33.33% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(25% - 0.4vw); }
    .netflix-arrow svg { width: 30px; height: 30px; }
}

@media (max-width: 599px) {
    .netflix-carousel-item { flex: 0 0 calc(50% - 0.4vw); }
    .netflix-carousel-item.shorts-item { flex: 0 0 calc(33.33% - 0.4vw); }
    .netflix-viewport { margin: 0 2%; width: 96%; }
    .netflix-arrow { width: 30px; min-width: 30px; }
}

/* ==================== PAGE HEADERS ==================== */
.page-header {
    padding: 20px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 10px 0 0 0;
}

.page-stats {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ==================== SEARCH PAGE ==================== */
.search-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.search-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    display: inline;
}

.search-stats {
    color: var(--color-text-muted);
    font-size: 13px;
    display: inline;
    margin-left: 15px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

/* ==================== CATEGORY PAGE ==================== */
.category-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.category-stats {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* ==================== CATEGORIES GRID ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.category-item {
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.category-item:hover {
    transform: scale(1.05);
}

.category-thumb-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
}

.category-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 15px;
}

.category-item-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.category-item-count {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ==================== MODELS PAGE ==================== */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.model-card {
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.model-avatar {
    position: relative;
    padding-bottom: 100%;
    background: var(--color-background);
}

.model-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info {
    padding: 15px;
}

.model-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-videos {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==================== MODEL PROFILE PAGE ==================== */
.model-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
    text-align: center;
}

.model-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid var(--color-accent);
}

.model-name-large {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.model-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-accent);
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
}

/* ==================== NEW VIDEOS PAGE ==================== */
.new-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.new-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px;
}

.new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ==================== PAGINATION ==================== */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-link {
    display: block;
    padding: 10px 15px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--color-primary);
    color: white;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== LOADING STATES ==================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.no-more {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    display: none;
}

.no-more.active {
    display: block;
}

.spinner-border {
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== HOMEPAGE V9 SPECIFIC ==================== */
.category-carousel {
    background: var(--color-surface);
    padding: 3px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.category-scroll-container {
    position: relative;
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 30px;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 10px;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	color: var(--color-secondary);
}

.category-chip.special {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: white;
}

.category-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all 0.2s;
}

.category-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.category-arrow.left {
    left: 0;
}

.category-arrow.right {
    right: 0;
}

.trending-section {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 20px 40px;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2px;
}

.trending-title {
	font-size: 1.3rem
}

.country-flag {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.end-of-content {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .new-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .new-section {
        padding: 20px 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .page-stats {
        font-size: 12px;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ==================== VIDEO TEMPLATE SPECIFIC ==================== */
/* Main container */
.container-main {
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Video and info section */
.video-section {
    display: grid;
    grid-template-columns: 1fr 426px;
    gap: 24px;
}

/* Main content area */
.main-content {
    min-width: 0;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder,
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #666;
}

.video-player iframe {
    border: none;
}

/*..video-info {
    margin-top: 12px;
}*/

/*.video-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}*/

.video-meta-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
    text-decoration: none;
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-name {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.channel-name:hover {
    color: var(--color-accent);
}

.channel-subs {
    font-size: 12px;
    color: var(--color-text-muted);
}

.video-stats {
    display: block;
    text-align: right;
}

.stat-item {
    font-size: 14px;
    color: var(--color-text-muted);
	padding-left: 6px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    color: var(--color-text);
}

.action-button:hover {
    background: var(--color-border);
}

.action-button.liked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Sidebar */
.sidebar {
    min-width: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.filter-chip {
    padding: 8px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--color-text);
    text-decoration: none;
}

.filter-chip.active {
    background: var(--color-text);
    color: var(--color-background);
}

.filter-chip:hover:not(.active) {
    background: var(--color-border);
    color: var(--color-text);
}

.filter-chip.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Related videos */
.related-videos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.related-item:hover {
    background: var(--color-surface);
}

.related-item > a {
    display: flex;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.related-item:hover .related-thumb-wrapper {
    transform: scale(1.02);
}

.related-thumb-wrapper {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    transition: transform 0.2s;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}

.related-channel {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Full width related videos section */
.related-videos-full {
    margin-top: 5px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 4px;
}

.related-item-grid {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    padding: 5px;
}

.related-item-grid:hover {
    background: var(--color-surface);
}

.related-thumb-wrapper-grid {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 8px;
}

.related-thumb-wrapper-grid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge-grid {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Ensure no blue underlines on any links */
.related-item-grid .related-title,
.related-item-grid .related-channel,
.related-item-grid .related-meta {
    text-decoration: none !important;
}

@media (max-width: 1200px) {
    .video-section {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-width: 100%;
    }
    
    .related-videos {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }
    
    .related-item > a {
        flex-direction: column;
    }
    
    .related-thumb-wrapper {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 640px) {
    .container-main {
        padding: 0;
    }
    
    .video-player {
        border-radius: 0;
    }
    
    .video-info,
    .sidebar {
        padding: 0 16px;
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-danger {
    color: var(--color-accent) !important;
}

.text-success {
    color: #28a745 !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==================== NEW BADGE STYLES FOR MINI MODELS BAR ==================== */

/* Wrapper to position badge relative to avatar */
.mini-model-avatar-wrapper {
    position: relative;
    display: inline-block;
}

/* Base NEW badge styling */
.mini-model-new-badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
    animation: badgePulse 2s ease-in-out infinite;
}

/* HOT NEW badge (0-48 hours) - RED with fire emoji */
.mini-model-new-badge.hot {
    background: linear-gradient(135deg, #ff0844 0%, #ff6b6b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* WARM NEW badge (48-96 hours) - ORANGE, no emoji */
.mini-model-new-badge.warm {
    background: linear-gradient(135deg, #ff6b35 0%, #ffaa5c 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Subtle pulse animation for NEW badges */
@keyframes badgePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.95;
    }
}

/* Hover effect - make badge more prominent */
.mini-model:hover .mini-model-new-badge {
    animation: badgePulseHover 0.6s ease-in-out infinite;
}

@keyframes badgePulseHover {
    0%, 100% {
        transform: translateX(-50%) scale(1.05);
    }
    50% {
        transform: translateX(-50%) scale(1.15);
    }
}

/* Make sure avatar wrapper doesn't break existing layout */
.mini-model-avatar-wrapper .mini-model-avatar {
    display: block;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--color-surface);
    border-top: 2px solid var(--color-border);
    margin-top: 60px;
    padding: 40px 0 20px 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-description {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-email {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--color-primary);
}

.footer-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 30px 0 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-compliance {
    color: var(--color-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.compliance-badge {
    background: var(--color-background);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

/* Footer mobile responsiveness */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-compliance {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== LEGAL PAGES ==================== */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.legal-title {
    color: var(--color-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 14px;
}

.legal-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    color: var(--color-accent);
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul,
.legal-content ol {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-primary);
}

.legal-highlight {
    background: var(--color-background);
    border-left: 4px solid var(--color-accent);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-highlight strong {
    color: var(--color-primary);
}

.legal-contact-box {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.legal-contact-box h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.legal-contact-box .footer-email {
    font-size: 18px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px 20px;
    }
    
    .legal-title {
        font-size: 26px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
}