/* Base Styles - Kai TV Web Clone */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #0a0a1a;
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-logo img {
    width: 300px;
    height: auto;
}

.splash-loading {
    text-align: center;
    margin-top: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(74, 74, 224, 0.3);
    border-top: 3px solid #4a4ae0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Screen - Android TV Style */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.login-container {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 2px solid #4a4ae0;
    border-radius: 16px;
    padding: 40px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 50px rgba(74, 74, 224, 0.3);
}

.kai-logo {
    text-align: center;
    margin-bottom: 30px;
}

.kai-logo img {
    width: 300px;
    height: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #aaa;
    font-size: 0.9em;
    text-align: left;
}

.tv-input {
    padding: 12px 16px;
    background: #0a0a1a;
    border: 2px solid #4a4ae0;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.tv-input:focus {
    border-color: #6a6aff;
}

.login-btn {
    background: linear-gradient(135deg, #4a4ae0 0%, #6a6aff 100%);
    color: #0a0a1a;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(74, 74, 224, 0.5);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: #e63946;
    text-align: center;
    font-size: 0.9em;
    padding: 10px;
}

.detach-section {
    margin-top: 20px;
    text-align: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9em;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dashboard Header - Top Bar */
.dashboard-header {
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a6e 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4a4ae0;
    position: relative;
    z-index: 10;
    height: 56px;
}

/* Right side of header - user badge and clock */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 160px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.user-badge {
    background: #4a4ae0;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
}

.clock-display {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
    height: calc(100vh - 56px - 40px);
    overflow-y: auto;
}

.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: #4a4ae0;
    border-radius: 4px;
}

/* Recommendation Section */
.recommend-section {
    margin-bottom: 30px;
}

.featured-content {
    display: flex;
    gap: 20px;
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 1px solid #4a4ae0;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
}

.featured-image {
    flex: 0 0 400px;
    height: 220px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-type {
    color: #4a4ae0;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-title {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.genres-list {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.info-synopsis {
    color: #aaa;
    font-size: 1em;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
}

.content-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 0.85em;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Dashboard Menu Grid (8 botones) */
.dashboard-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-menu-btn {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 2px solid #4a4ae0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.1em;
    font-weight: 500;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dashboard-menu-btn:hover {
    background: linear-gradient(145deg, #2a2a5e, #3a3a7e);
    border-color: #6a6aff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(74, 74, 224, 0.4);
}

.dashboard-menu-btn.active {
    background: #4a4ae0;
    color: #0a0a1a;
}

.dashboard-menu-btn .btn-icon {
    font-size: 1.5em;
}

/* Content Categories */
.content-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-section {
    margin-bottom: 20px;
}

.category-title {
    color: #4a4ae0;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 5px;
}

/* Dashboard Recommendations Sections */
.dashboard-recommend-section {
    margin-bottom: 25px;
}

.recommend-section-title {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-section-title::before {
    content: '';
    width: 3px;
    height: 1.2em;
    background: #4a4ae0;
    border-radius: 2px;
}

/* Horizontal Scroll Cards */
.horizontal-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #4a4ae0;
    border-radius: 4px;
}

.content-card {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 1px solid #4a4ae0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 200px;
    min-width: 200px;
    height: 280px;
}

.content-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 74, 224, 0.4);
    border-color: #6a6aff;
}

/* Featured Carousel (Historial Reciente) */
.featured-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.featured-carousel::-webkit-scrollbar {
    height: 8px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: #4a4ae0;
    border-radius: 4px;
}

.featured-item {
    min-width: 220px;
    flex: 0 0 auto;
    cursor: pointer;
    background: linear-gradient(160deg, #1a1a3e 0%, #2a2a5e 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 74, 224, 0.4);
}

/* History Grid Layout */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.history-card {
    cursor: pointer;
    max-width: 140px;
    transition: transform 0.2s ease;
}

.history-card:hover {
    transform: scale(1.03);
}

.content-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.8em;
    color: #aaa;
    display: flex;
    justify-content: space-between;
}

/* Channel App Layout */
.channel-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 200;
}

.channel-header {
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a6e 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4a4ae0;
    height: 56px;
}

/* Channel Layout */
.channel-layout {
    display: flex;
    height: calc(100vh - 56px);
    gap: 20px;
    padding: 20px;
}

/* Main Content (Left) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a3e;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #4a4ae0;
}

.search-icon {
    color: #888;
}

.search-bar input {
    flex: 1;
    padding: 8px;
    background: #0a0a1a;
    border: 1px solid #4a4ae0;
    border-radius: 4px;
    color: #fff;
    font-size: 1em;
    outline: none;
}

.search-bar input:focus {
    border-color: #6a6aff;
}

.search-clean-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2em;
}

/* Dashboard Search Bar */
.dashboard-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a3e;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0 auto 20px auto;
    max-width: 800px;
    width: 90%;
    border: 1px solid #4a4ae0;
}

.dashboard-search-bar input {
    flex: 1;
    padding: 8px;
    background: #0a0a1a;
    border: 1px solid #4a4ae0;
    border-radius: 4px;
    color: #fff;
    font-size: 1em;
    outline: none;
}

.dashboard-search-bar input:focus {
    border-color: #6a6aff;
}

/* Channel List (Vertical) */
.channel-list-container {
    flex: 1;
    overflow: hidden;
    border: 1px solid #4a4ae0;
    border-radius: 8px;
}

.channel-list {
    height: 100%;
    overflow-y: auto;
    padding: 8px;
}

.channel-list::-webkit-scrollbar {
    width: 8px;
}

.channel-list::-webkit-scrollbar-track {
    background: #1a1a3e;
}

.channel-list::-webkit-scrollbar-thumb {
    background: #4a4ae0;
    border-radius: 4px;
}

/* Channel Item */
.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-bottom: 6px;
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 1px solid #4a4ae0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 56px;
}

.channel-item:hover {
    background: linear-gradient(145deg, #2a2a5e, #3a3a7e);
    border-color: #6a6aff;
    transform: translateX(5px);
}

.channel-item.active {
    border-color: #6a6aff;
    box-shadow: 0 0 15px rgba(74, 74, 224, 0.4);
}

.channel-logo {
    flex: 0 0 80px;
    height: 45px;
    background: #0a0a1a;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 70px;
}

.channel-no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85em;
}

.channel-info {
    flex: 1;
}

.channel-title {
    font-size: 1.05em;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.channel-meta {
    font-size: 0.8em;
    color: #888;
    display: flex;
    gap: 10px;
}

.channel-category {
    color: #4a4ae0;
    font-weight: 500;
}

.channel-number {
    opacity: 0.7;
}

/* Player Area (Right) */
.player-area {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #4a4ae0;
    aspect-ratio: 16/9;
}

#miniPlayer {
    width: 100%;
    height: 100%;
    outline: none;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.player-overlay.show {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.error-message-text {
    color: #e63946;
    font-size: 1.1em;
    text-align: center;
    padding: 0 20px;
}

.retry-btn {
    background: #4a4ae0;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #6a6aff;
}

/* Channel Info Bar (below player) */
.channel-info-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a3e;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #4a4ae0;
}

.channel-number {
    background: #4a4ae0;
    color: #0a0a1a;
    font-size: 1.1em;
    font-weight: bold;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.channel-title-info {
    font-size: 1.1em;
    font-weight: 500;
    color: #fff;
}

/* EPG Container */
.epg-container {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border: 1px solid #4a4ae0;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    overflow: hidden;
}

.epg-title {
    color: #4a4ae0;
    font-size: 0.85em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0 5px;
}

.epg-list {
    overflow-y: auto;
    max-height: calc(100% - 25px);
}

.epg-list::-webkit-scrollbar {
    width: 6px;
}

.epg-list::-webkit-scrollbar-track {
    background: #0a0a1a;
    border-radius: 3px;
}

.epg-list::-webkit-scrollbar-thumb {
    background: #4a4ae0;
    border-radius: 3px;
}

.epg-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #0a0a1a;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.epg-item:hover {
    background: #1a1a3e;
    border-left-color: #4a4ae0;
}

.epg-item.active {
    border-left-color: #4a4ae0;
    background: #1a1a3e;
}

.epg-time {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 4px;
}

.epg-title-text {
    font-size: 0.95em;
    color: #fff;
    font-weight: 500;
}

/* Details Modal (Movies/Shows - Android TV DetailsFragment style) */
.details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow-y: auto;
}

.details-container {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
}

.details-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(74, 74, 224, 0.3);
    border: 2px solid #4a4ae0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.8em;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.details-close-btn:hover {
    background: #4a4ae0;
    transform: scale(1.1);
}

.details-bg-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.details-scroll-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Detail Content Section (with background image) */
.detail-content-section {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Gradient overlays */
.gradient-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #0a0a1a 0%, transparent 100%);
    z-index: 2;
}

.gradient-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(270deg, #0a0a1a 0%, transparent 100%);
    z-index: 2;
}

.gradient-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, #0a0a1a 100%);
    z-index: 2;
}

.content-detail-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    padding: 40px 30px;
    z-index: 3;
}

.detail-title {
    color: #fff;
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.genres-scroll {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(74, 74, 224, 0.2);
    border: 1px solid #4a4ae0;
    border-radius: 12px;
    color: #6a6aff;
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Buttons */
.detail-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-play {
    background: linear-gradient(135deg, #4a4ae0 0%, #6a6aff 100%);
    color: #0a0a1a;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(74, 74, 224, 0.5);
}

.btn-trailer {
    background: transparent;
    color: #fff;
    border: 2px solid #4a4ae0;
}

.btn-trailer:hover {
    background: rgba(74, 74, 224, 0.2);
    border-color: #6a6aff;
}

.btn-favorite {
    background: transparent;
    color: #aaa;
    border: 2px solid #4a4ae0;
}

.btn-favorite:hover {
    color: #ffd700;
    border-color: #ffd700;
}

.btn-favorite.active {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Meta info */
.detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.85em;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-chip .meta-icon {
    font-size: 0.9em;
}

/* Synopsis */
.detail-synopsis {
    color: #aaa;
    font-size: 1em;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Actors Section */
.detail-actors-section,
.detail-recommended-section {
    margin-bottom: 25px;
}

.section-label {
    color: #4a4ae0;
    font-size: 1.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 5px;
}

.actor-card {
    flex: 0 0 120px;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.actor-card:hover {
    transform: scale(1.08);
}

.actor-card:hover img {
    border-color: #6a6aff;
    box-shadow: 0 4px 12px rgba(74, 74, 224, 0.5);
}

.actor-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid #4a4ae0;
    transition: all 0.2s ease;
}

.actor-name {
    color: #fff;
    font-size: 0.9em;
    font-weight: 500;
}

.actor-name:hover {
    color: #6a6aff;
}

/* Favorite card - remove button */
.history-card .remove-fav-btn {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    background: rgba(230, 57, 73, 0.9) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    font-size: 0.7em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
}

/* Recommended card - same style */
.detail-recommended-section .content-card {
    flex: 0 0 200px;
    min-width: 200px;
    height: 280px;
}

/* Video Modal (for movies/shows) */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#videoPlayer {
    width: 100%;
    border-radius: 12px;
    outline: none;
}

#videoPlayer.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
}

/* Loading/Empty States */
.channel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #e63946;
}

/* Focus Styles - TV Style */
*:focus {
    outline: 2px solid #4a4ae0;
    outline-offset: 2px;
}

/* Settings */
.settings-container {
    padding: 20px;
    max-width: 800px;
}

.settings-section {
    background: linear-gradient(145deg, #1a1a3e, #2a2a5e);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #4a4ae0;
}

.settings-section h3 {
    color: #888;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row label {
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.setting-description {
    color: #888;
    font-size: 0.85em;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a4ae0;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: #6a6aff;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Responsive */
@media (max-width: 1200px) {
@media (max-width: 1200px) {
    .channel-layout {
        flex-direction: column;
    }

    .player-area {
        flex: 0 0 250px;
        flex-direction: row;
    }

    .main-content {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .channel-layout {
        flex-direction: column;
    }

    .player-area {
        flex: 0 0 auto;
    }
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}