/* ARQUIVO: admin/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navbar */
.sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
}

/* Cards & Forms */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    font-size: 0.95rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.canais {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.badge.vod {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge.combo {
    background-color: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Dashboard Metrics & Layout */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-card .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
}

.metric-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
}

.search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
}

/* --- WEB PLAYER PREMIUM STYLES --- */
.player-container {
    display: flex;
    height: calc(100vh - 40px);
    background: #0a0a0c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.player-sidebar {
    width: 260px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-nav-item {
    padding: 12px 15px;
    border-radius: 10px;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.player-nav-item:hover,
.player-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.player-nav-item.active {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.1);
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.content-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #1a1a1f;
}

.content-title {
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.video-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#iptv-video {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 16/9;
}

.close-player {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.close-player:hover {
    background: #ef4444;
}

/* --- SMARTERS PRO INSPIRED UI --- */
.smarters-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 100%;
    width: 100%;
    padding: 20px;
    flex-wrap: wrap;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent);
}

.smarters-card {
    width: 300px;
    height: 400px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.smarters-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-grad), transparent);
    opacity: 0.1;
    transition: 0.3s;
}

.smarters-card:hover {
    transform: scale(1.05);
    border-color: var(--card-grad);
    box-shadow: 0 0 40px rgba(var(--card-rgb), 0.2);
}

.smarters-card:hover::before {
    opacity: 0.3;
}

.smarters-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(var(--card-rgb), 0.5));
}

.smarters-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.smarters-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* Gradients por Categoria */
.card-live {
    --card-grad: #f59e0b;
    --card-rgb: 245, 158, 11;
}

.card-movies {
    --card-grad: #3b82f6;
    --card-rgb: 59, 130, 246;
}

.card-series {
    --card-grad: #a855f7;
    --card-rgb: 168, 85, 247;
}

.player-container.browser-mode .player-sidebar {
    display: flex;
}

.player-container.dashboard-mode .player-sidebar {
    display: none;
}

.player-container.dashboard-mode .player-content {
    background: transparent;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

/* --- SMARTERS PRO FULL TRANSFORMATION --- */
.smarters-body {
    background: #050507 linear-gradient(135deg, #050507 0%, #111 100%);
    background-image: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        url('https://images.unsplash.com/photo-1550745671-33292415518b?auto=format&fit=crop&w=1920&q=80');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.smarters-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.smarters-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Smarters */
.smarters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    margin-bottom: 20px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.header-time {
    text-align: right;
    font-weight: 500;
}

.header-time .time {
    font-size: 1.4rem;
    display: block;
}

.header-time .date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Dashboard Grid */
.smarters-main-grid {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.card-smarters {
    width: 280px;
    height: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.4s ease-out;
    text-decoration: none;
    position: relative;
}

.card-smarters:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--card-color);
    box-shadow: 0 15px 50px rgba(var(--card-rgb), 0.3);
}

.card-smarters .icon-box {
    width: 120px;
    height: 120px;
    background: rgba(var(--card-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card-smarters:hover .icon-box {
    background: var(--card-color);
    transform: rotate(10deg);
}

.card-smarters .title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.card-smarters .subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* Detail Overlay */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    padding: 60px;
    align-items: center;
    justify-content: center;
}

.detail-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    gap: 50px;
    animation: fadeIn 0.4s ease-out;
}

.detail-poster {
    width: 350px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.detail-info {
    flex: 1;
}

.detail-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.detail-meta {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.detail-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 30px;
}

.btn-play {
    background: var(--accent);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-play:hover {
    transform: scale(1.1);
    background: #3b82f6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PERFORMANCE & LAYOUT FIXES --- */

/* Fix Duplicated Scrollbars */
#smarters-browser {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    margin: 10px 40px 20px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: calc(100vh - 160px);
    /* Fill space without double scroll */
    display: flex;
    flex-direction: column;
}

#content-grid {
    flex: 1;
    overflow-y: auto !important;
    /* Only this should scroll content */
    padding: 0 40px 40px 40px;
}

#category-list {
    overflow-y: auto;
    max-height: 100%;
}

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
    0% {
        background-color: rgba(255, 255, 255, 0.03);
    }

    50% {
        background-color: rgba(255, 255, 255, 0.08);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.03);
    }
}

.skeleton-card {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 15px;
    margin-top: 10px;
    border-radius: 4px;
    width: 80%;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

/* Improved Sidebar Layout */
#category-sidebar {
    width: 280px;
    /* Slightly wider for category names */
    min-width: 280px;
}

/* Browser Section Enhancements */
#category-list .player-nav-item {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

#category-list .player-nav-item:hover {
    background: rgba(var(--card-rgb), 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

#category-list .player-nav-item.active {
    background: var(--accent) !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Flexible Content Cards */
.poster-container {
    width: 100%;
    aspect-ratio: 2/3;
    /* Standard Movie/Series Poster */
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.is-live .poster-container {
    aspect-ratio: 16/10;
    /* Better for Channel Logos */
    background: radial-gradient(circle at center, #1a1a1f, #0a0a0c);
}

.content-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.is-live .content-poster {
    object-fit: contain;
    padding: 15px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.content-card:hover .content-poster {
    transform: scale(1.1);
}

.content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--card-rgb), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    width: 100%;
    align-content: start;
}

.is-live-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.poster-container {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.is-live .poster-container {
    aspect-ratio: 16/9;
}

.back-link {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    .detail-poster {
        width: 200px;
    }

    .detail-info h1 {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* Scrollbar Style */
.player-content::-webkit-scrollbar {
    width: 6px;
}

.player-content::-webkit-scrollbar-track {
    background: transparent;
}

.player-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.recent-logs {
    list-style: none;
}

.log-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: block;
}

/* --- VODX-TV PREMIUM THEME OVERHAUL --- */

:root {
    --accent: #2563eb;
    --bg-dark: #07070a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.5);
}

.vodx-navbar {
    height: 80px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

.vodx-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-badge {
    background: var(--accent);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
}

.nav-center {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.1);
}

.nav-right {
    display: flex;
    gap: 20px;
}

.nav-action {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vodx-content {
    flex: 1;
    overflow: hidden;
}

/* LIVE TV LAYOUT */
.live-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 80px);
}

.live-sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    outline: none;
}

.source-select select {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.live-categories {
    flex: 1;
    overflow-y: auto;
}

.cat-item {
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-item:hover,
.cat-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.cat-item.active {
    border-left: 4px solid var(--accent);
}

.live-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    overflow: hidden;
}

.live-channel-list {
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 10px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.channel-card.active {
    background: rgba(37, 99, 235, 0.1);
}

.channel-card .logo-box {
    width: 60px;
    height: 40px;
    background: #111;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.channel-card .logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.channel-card .info {
    flex: 1;
}

.channel-card .name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.channel-card .program {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fav-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.fav-icon.active {
    color: #ef4444;
}

.live-player-area {
    display: flex;
    flex-direction: column;
    background: #000;
    height: 100%;
    overflow: hidden;
}

.main-video-player {
    width: 100%;
    background: #000;
    max-height: 56.25%;
    /* 16/9 ratio */
    object-fit: contain;
}

.epg-mini {
    flex: 1;
    background: #0a0a0f;
    padding: 30px;
}

.epg-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* VOD STYLES */
.browser-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.browser-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.browser-actions {
    display: flex;
    gap: 15px;
}

.glass-select,
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    outline: none;
}

.vod-card {
    position: relative;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vod-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.vod-card .poster-container {
    border-radius: 12px;
    aspect-ratio: 2/3;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vod-card .poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vod-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.vod-card:hover .overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.vod-card .title {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.fav-badge.active {
    color: #ef4444;
    background: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* --- VOD DETAIL & CARD ENHANCEMENTS --- */
.vod-info-box {
    padding: 10px 5px;
    text-align: left;
}

.vod-info-box .title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-glass-card {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 40px;
    display: flex;
    gap: 60px;
    max-width: 1200px;
    width: 90%;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.detail-submeta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-fav-large,
.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 15px 30px;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-fav-large:hover {
    background: #fff;
    color: #000;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* --- SERIES DETAIL & ACCORDIONS --- */
.btn-back-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-back-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.series-hero {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.series-hero-poster {
    width: 280px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.series-hero-info h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 15px 0;
}

.series-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 20px;
}

.series-meta-row {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    gap: 20px;
}

.seasons-list {
    padding: 20px 40px 100px;
}

.season-accordion {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.season-header {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}

.season-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.season-header .chevron {
    display: inline-block;
    transition: 0.3s;
    margin-right: 15px;
}

.season-header.open .chevron {
    transform: rotate(90deg);
}

.season-episodes {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.episode-row {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.episode-row:hover {
    background: rgba(37, 99, 235, 0.1);
}

.episode-row .ep-num {
    color: var(--accent);
    font-weight: 900;
    width: 40px;
}

.episode-row .ep-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.episode-row .ep-play-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --- CRITICAL LAYOUT RESET --- */
.vodx-player-body {
    background: #07070a !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    /* Override potential display:flex from Smarters */
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.vodx-main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: #07070a;
    position: relative;
    z-index: 1;
}

.vodx-navbar {
    flex-shrink: 0;
    height: 80px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
}

.nav-center {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    align-items: center;
}

.tab-content {
    display: none !important;
    flex: 1;
    overflow: hidden;
    background: #07070a;
}

.tab-content.active {
    display: flex !important;
    flex-direction: column;
}

/* Fix sidebar alignment in Live TV */
.live-layout {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    flex: 1;
    overflow: hidden;

    /* Pagination Styles */
    .pagination-area {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn-page {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        padding: 8px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
        transition: 0.3s;
    }

    .btn-page:hover {
        background: var(--accent);
        border-color: var(--accent);
    }

    .page-num {
        color: var(--text-muted);
        font-size: 0.9rem;
        font-weight: bold;
    }

    .vod-grid {
        flex: 1;
        overflow-y: auto !important;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
        padding: 40px;
    }

    /* Loading Spinner */
    .loading-spinner {
        grid-column: 1 / -1;
        text-align: center;
        padding: 50px;
        color: var(--text-muted);
        font-size: 1.2rem;
    }

    height: calc(100vh - 80px);
}

.live-sidebar {
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.live-main {
    display: grid !important;
    grid-template-columns: 350px 1fr !important;
    overflow: hidden;
}

.vod-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 25px;
    padding: 30px;
}