/* ROOT VARIABLES - PREMIUM STREAMING THEME */
:root {
    /* Colors */
    --bg-dark: #090A0F;        /* True premium black */
    --bg-card: #12151C;        /* Rich dark for surfaces */
    --bg-hover: #1A1F29;       /* Hover states */
    --primary: #0077B6;        /* Deep Water Blue */
    --primary-hover: #00B4D8;
    --primary-glow: rgba(0, 119, 182, 0.4);
    --secondary: #90E0EF;      /* Light Blue Accent */
    --live-green: #10B981;     /* Emerald green for LIVE */
    --offline-gray: #64748B;   /* Gray for offline */
    
    /* Typography */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* UI Elements */
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* UTILITIES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-spacing {
    padding-top: 60px;
    padding-bottom: 80px;
}

.section-spacing {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-yellow { color: #FBBF24 !important; }

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HEADER & NAVBAR */
.main-header {
    background: rgba(9, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link, .dropbtn {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover, .dropdown:hover .dropbtn {
    color: var(--text-main);
    background: var(--bg-hover);
}

.chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    width: 700px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 10;
    padding: 20px;
    top: 100%;
    right: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: none; /* Remove scrollbars */
    overflow-y: visible;
}

.dropdown:hover .dropdown-content { 
    display: grid; 
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a:hover { background: var(--bg-hover); color: var(--text-main); }

/* SEARCH FORM */
.search-form {
    display: flex;
    background: var(--bg-hover);
    border-radius: 50px;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    width: 250px;
    align-items: center;
}

.search-form input {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    font-size: 0.9rem;
}

.search-form input:focus { outline: none; }
.search-form button { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }

/* MOBILE TOGGLE */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* HERO SECTION */
.hero {
    padding: 100px 0 60px;
    background: radial-gradient(circle at top, rgba(0, 119, 182, 0.12), transparent 60%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION HEADERS */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.header-content h2 {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* GRID & CARDS */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.model-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.model-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.badge-live { background: var(--live-green); color: white; }
.badge-offline { background: var(--offline-gray); color: white; }

.card-info { padding: 20px; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 12px; }

.meta-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* COUNTRIES GRID */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.country-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    font-weight: 700;
    transition: var(--transition);
}

.country-pill:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pill-flag {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pill-flag img { width: 100%; height: 100%; object-fit: cover; }

/* INFO BLOCK & FEATURE GRID */
.info-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-top: 100px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.info-block.no-image {
    display: block;
    text-align: center;
}

.info-content.full-width {
    max-width: 900px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.05);
}

.feature-item i { color: var(--primary); flex-shrink: 0; }
.feature-item span { font-weight: 600; font-size: 1rem; display: block; margin-bottom: 4px; color: var(--text-main); }
.feature-item p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.breadcrumb i { width: 14px; }
.breadcrumb a:hover { color: var(--primary); }

/* PROFILE PAGE */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.video-container {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.player-wrapper { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
}

.player-wrapper > * { 
    width: 100% !important; 
    height: 100% !important; 
    border: none !important;
    display: block;
}

.player-wrapper iframe, 
.player-wrapper object, 
.player-wrapper embed,
.player-wrapper video { 
    width: 100% !important; 
    height: 100% !important; 
    border: none !important;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(4px);
}

.placeholder-overlay {
    position: absolute;
    z-index: 5;
    text-align: center;
}

.profile-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.profile-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.live-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 10px;
}

.status-online { background: rgba(16, 185, 129, 0.1); color: var(--live-green); }
.status-offline { background: rgba(100, 116, 139, 0.1); color: var(--offline-gray); }

.live-status-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.detail-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-pill {
    background: var(--bg-hover);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SIDEBAR */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.premium-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 119, 182, 0.1) 100%);
    border-color: var(--primary);
}

.sidebar-card h3 { margin-bottom: 16px; font-size: 1.1rem; }
.sidebar-related-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }

.mini-card {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mini-card:last-child { border: none; padding-bottom: 0; }

.mini-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-status {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--live-green);
    font-size: 0.5rem;
    padding: 2px 4px;
    color: white;
    font-weight: 900;
}

.mini-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.mini-info span { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary.full-width { width: 100%; }
.btn-primary.large-btn { padding: 18px 40px; font-size: 1.1rem; }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.hidden { display: none !important; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FOOTER */
.main-footer {
    background: #050609;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 { margin-bottom: 24px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .dropdown-content {
        width: 500px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .profile-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 40px; }
    
    .mobile-menu-toggle { display: block; }
    
    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .nav-content.active { display: flex; }
    
    .main-nav { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-link, .dropbtn { width: 100%; justify-content: space-between; font-size: 1.1rem; }
    
    .dropdown { width: 100%; }
    .dropdown-content {
        display: none !important;
        position: static;
        width: 100%;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .dropdown:hover .dropdown-content, 
    .dropdown.active .dropdown-content { 
        display: grid !important; 
    }
    
    .search-form { width: 100%; }
}

@media (max-width: 768px) {
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .info-block { padding: 40px 24px; }
    .hero h1 { font-size: 2.2rem; }
}