body {
    background-color: #141414;
    color: #e5e5e5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bs-body-bg: #141414;
    --bs-body-color: #e5e5e5;
    --bs-primary: #E50914;
    --bs-secondary: #B81D24;
    --bs-success: #2ecc71;
    --bs-danger: #E50914;
    --bs-warning: #f1c40f;
    --bs-info: #3498db;
    --bs-light: #f5f5f5;
    --bs-dark: #0b0b0b;
    --card-bg: #181818;
    --card-border: #2a2a2a;
    --muted: #a3a3a3;
    --focus-ring: rgba(229, 9, 20, 0.35);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

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

.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform .08s ease, box-shadow .2s ease, background-color .15s ease, border-color .15s ease;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #B20710;
    border-color: #B20710;
}

.btn:active {
    transform: translateY(1px);
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: #B20710;
    text-decoration: underline;
}

.navbar {
    background-color: #0f0f0f !important;
    border-bottom: 1px solid var(--card-border);
}

.navbar .nav-link {
    color: #e5e5e5 !important;
}

.navbar .nav-link:hover {
    color: var(--bs-primary) !important;
}

.form-label {
    color: #eaeaea;
}

.form-control,
.form-select {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333333;
}

.form-control::placeholder {
    color: #9c9c9c;
}

.form-control:focus,
.form-select:focus {
    background-color: #1f1f1f;
    color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem var(--focus-ring);
}

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

[data-tv-focus="1"]:focus {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px;
}

.tv-focused {
    box-shadow: 0 0 0 0.25rem var(--focus-ring) !important;
}

@media (max-width: 420px) {
    .card {
        border-radius: 10px;
    }
}

.episode-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.episode-number {
    position: absolute;
    bottom: 8px;
    left: 12px;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

@keyframes indeterminate {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-24px);
    }
}

.stage {
    animation: slideIn .25s ease both;
}

.stage.out {
    animation: slideOut .25s ease both;
}

.loader-bar {
    position: relative;
    height: 6px;
    width: 220px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 14px auto 8px auto;
}

.loader-bar>div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, rgba(229, 9, 20, .2), rgba(229, 9, 20, .9));
    border-radius: 999px;
    animation: indeterminate 1s linear infinite;
}

.stage-text {
    color: #a3a3a3;
}

html,
body {
    overflow: hidden;
    background-color: #141414;
}

.app {
    display: flex;
}

.content {
    position: fixed;
    top: 0;
    left: 100px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content.page-view {
    padding: 0 4%;
    box-sizing: border-box;
}

.content.page-view .page-title {
    padding-left: 0;
    padding-right: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100px;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.sidebar-top {
    margin-bottom: auto;
}

.sidebar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-item {
    position: relative;
    color: #aaa;
    background: none;
    border: 3px solid transparent;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 5px;
}

.sidebar-label {
    font-size: 0.75rem;
    color: inherit;
}

.sidebar-item.sn-focused,
.sidebar-item:hover {
    outline: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.05);
}

.sidebar-item.active {
    color: #fff;
    background-color: rgba(229, 9, 20, 0.3);
}

.hero-wrap {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 3%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center top;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.hero-bg.loaded {
    opacity: 1;
}

.hero-grad {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, #111 15%, transparent 60%), linear-gradient(to top, #141414 10%, transparent 40%);
}

.hero-inner {
    max-width: 40%;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

.hero-synopsis {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 1rem;
}
.hero-actions .btn {
    font-weight: bold;
    padding: 0.75rem 2rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-actions .btn-light {
    background-color: #fff;
    color: #141414;
}

.hero-actions .btn-light:hover,
.hero-actions .btn-light.sn-focused {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    outline: none;
    border-color: transparent;
}

.main-content-rows {
    position: relative;
    padding: 0 2%;
    margin-top: -26vh;
}

.row-container {
    margin-bottom: 2rem;
    overflow: hidden;
}

.row-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    padding: 0 1vw;
}

.row-scroller {
    display: flex;
    gap: 1vw;
    padding: 1rem 1vw;
    overflow-x: auto;
    scrollbar-width: none;
}

.row-scroller::-webkit-scrollbar {
    display: none;
}

.tile {
    flex-shrink: 0;
    width: clamp(140px, 14vw, 200px);
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 3px solid transparent;
    cursor: pointer;
}

.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.tile.sn-focused {
    outline: none;
    transform: scale(1.1);
    z-index: 10;
    border-color: #fff;
}

.tile:hover {
    transform: scale(1.08);
    z-index: 10;
    border-color: var(--bs-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    padding: 2rem 4%;
}

.view-all-tile {
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.view-all-tile.sn-focused {
    border-color: #fff;
    background-color: #333;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4% 1.5rem 4%;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-button:hover,
.back-button.sn-focused {
    background: #fff;
    color: #141414;
    border-color: #fff;
    transform: scale(1.1);
    outline: none;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 0 4% 2rem 4%;
}

.grid-container .tile {
    width: 100%;
}

.grid-container .tile.sn-focused {
    transform: scale(1.15);
    z-index: 20;
}

.search-header {
    padding: 2rem 4%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-input {
    flex-grow: 1;
    background-color: #333;
    border: 2px solid #555;
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus,
.search-input.sn-focused {
    border-color: #fff;
    background-color: #444;
}

.search-results {
    padding: 0 4%;
}

.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    padding: 3rem 0;
}

.live-tv-tile {
    background-color: #222;
    padding: 10px;
    box-sizing: border-box;
}

.live-tv-tile .tile-img {
    object-fit: contain;
}

.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.player-container {
    width: 100%;
    height: auto;
    max-width: 1280px;
    max-height: 100%;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.vjs-modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(20, 20, 20, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.vjs-modal-close-button:hover {
    background-color: #fff;
    color: #000;
}

.video-js {
    width: 100%;
    height: 100%;
}

.detail-hero {
    position: relative;
    min-height: 60vh;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center top;
    opacity: 0.3;
}

.detail-grad {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, #141414 25%, transparent 80%);
}

.detail-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 0 5%;
}

.back-button-aligned {
    background: rgba(40, 40, 40, 0.8);
    border: 3px solid transparent;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 2rem;
    transition: transform 0.2s ease;
}

.back-button-aligned.sn-focused {
    outline: none;
    border-color: #fff;
    transform: scale(1.05);
}

.detail-poster-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
    margin-right: 3rem;
}

.detail-poster {
    width: clamp(200px, 22vw, 300px);
    aspect-ratio: 2/3;
    border-radius: 8px;
}

.play-button {
    width: 100%;
    background-color: #fff;
    color: #141414;
    border: 3px solid transparent;
    padding: 0.9rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button.sn-focused {
    outline: none;
    border-color: #E50914;
    transform: scale(1.05);
}

.detail-meta {
    flex-grow: 1;
    padding-top: 0.5rem;
}

.detail-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.detail-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1rem;
}

.detail-plot {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 70ch;
    margin-bottom: 2rem;
}

.detail-extra {
    font-size: 1rem;
    color: #a0a0a0;
    max-width: 70ch;
}

.detail-extra p {
    margin-bottom: 0.8rem;
}

.detail-extra span {
    color: #fff;
}

.detail-wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.detail-hero {
    position: relative;
    min-height: 75vh;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.detail-bg.loaded {
    opacity: 0.5;
}

.detail-grad {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom, rgba(20,20,20,0) 60%, #141414 100%),
        linear-gradient(to right, #141414 20%, rgba(20,20,20,0) 70%);
}

.detail-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.back-button-aligned {
    position: absolute;
    top: -20px;
    left: 5%;
    background: rgba(40, 40, 40, 0.8);
    border: 3px solid transparent;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.back-button-aligned.sn-focused {
    outline: none;
    border-color: #fff;
    transform: scale(1.05);
}

.detail-poster-actions {
    flex-shrink: 0;
    margin-right: 3rem;
    margin-left: 100px;
}

.detail-poster {
    width: clamp(200px, 22vw, 300px);
    aspect-ratio: 2/3;
    border-radius: 8px;
}

.detail-meta {
    flex-grow: 1;
    max-width: 50%;
}

.detail-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.detail-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    font-size: 1rem;
}

.detail-plot {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 70ch;
    margin-bottom: 2rem;
}

.detail-extra {
    font-size: 1rem;
    color: #a0a0a0;
    max-width: 70ch;
}

.episodes-section {
    padding: 2rem 5% 4rem 5%;
    background-color: #141414;
    position: relative;
    margin-top: 0;
    z-index: 1;
}

.episode-tile {
    display: flex;
    flex-direction: column;
    width: clamp(200px, 20vw, 280px);
    aspect-ratio: initial;
    background: none;
    transition: transform 0.2s ease-in-out;
}

.episode-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid transparent;
}

.episode-play-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.episode-tile.sn-focused {
    transform: scale(1.08);
    z-index: 10;
}

.episode-tile.sn-focused .episode-poster {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.episode-tile.sn-focused .episode-play-icon {
    opacity: 1;
}

.content.live-screen-view {
    padding: 0;
    overflow: hidden;
}

.live-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: #141414;
}

.live-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

#live-categories-col {
    flex: 0 0 320px;
    background-color: #0c0c0c;
    border-right: 1px solid #333;
}

#live-channels-col {
    flex: 0 0 350px;
    background-color: #101010;
    border-right: 1px solid #333;
}

#live-player-col {
    flex: 1 1 auto;
    padding: 0;
}

.live-col-title {
    font-size: 1.2rem;
    color: #fff;
    padding: 0.5rem;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid #E50914;
}

.live-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.live-list-item {
    padding: 0.8rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.live-list-item:hover {
    background-color: #2a2a2a;
}

.live-list-item[data-tv-focus="1"]:focus {
    background-color: #E50914;
    color: #fff;
    outline: none;
}

.channel-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.live-player-container {
    width: 100%;
    height: 65%;
    background-color: #000;
}

.live-player-container .video-js {
    width: 100% !important;
    height: 100% !important;
}

.player-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
}

.player-placeholder p {
    font-size: 1.5rem;
    margin: 0;
}

.epg-container {
    padding: 1.5rem;
    height: 35%;
    overflow-y: auto;
    box-sizing: border-box;
}
.epg-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.live-container.fullscreen-active #live-categories-col,
.live-container.fullscreen-active #live-channels-col {
    flex-basis: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.live-container.fullscreen-active .live-player-container {
    height: 100%;
}

.live-container.fullscreen-active .epg-container {
    display: none;
}

.cast-section {
    margin-top: 2rem;
    padding: 0 5%;
}

.cast-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cast-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #E50914 #141414;
}

.cast-scroller::-webkit-scrollbar {
    height: 8px;
}

.cast-scroller::-webkit-scrollbar-track {
    background: #141414;
}

.cast-scroller::-webkit-scrollbar-thumb {
    background-color: #E50914;
    border-radius: 4px;
    border: 2px solid #141414;
}

.cast-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cast-name {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    word-break: break-word;
}

.cast-section {
    margin-top: 2rem;
    padding: 0 5%;
}

.cast-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cast-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #E50914 #141414;
}

.cast-scroller::-webkit-scrollbar {
    height: 8px;
}

.cast-scroller::-webkit-scrollbar-track {
    background: #141414;
}

.cast-scroller::-webkit-scrollbar-thumb {
    background-color: #E50914;
    border-radius: 4px;
    border: 2px solid #141414;
}

.cast-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #333;
}

.cast-name {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    word-break: break-word;
}

.cast-section {
    margin-top: 2rem;
    padding: 0 5%;
}

.cast-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cast-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #E50914 #141414;
}

.cast-scroller::-webkit-scrollbar {
    height: 8px;
}

.cast-scroller::-webkit-scrollbar-track {
    background: #141414;
}

.cast-scroller::-webkit-scrollbar-thumb {
    background-color: #E50914;
    border-radius: 4px;
    border: 2px solid #141414;
}

.cast-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cast-name {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
    word-break: break-word;
}

.app.fullscreen-mode .sidebar {
    display: none;
}

.app.fullscreen-mode .content {
    width: 100vw;
    padding: 0;
    margin: 0;
}

.content.live-screen-view {
    padding: 0;
    overflow: hidden;
}

.live-container.fullscreen-active #live-categories-col,
.live-container.fullscreen-active #live-channels-col {
    flex-basis: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.live-container.fullscreen-active #live-player-col {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.live-container.fullscreen-active .live-player-container {
    height: 100%;
}

.live-container.fullscreen-active .epg-container {
    display: none;
}

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

.live-list::-webkit-scrollbar-track {
    background: #101010;
}

.live-list::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 4px;
    border: 2px solid #101010;
}

.live-list::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

.live-list-item[data-tv-focus="1"] {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
}

.live-list-item[data-tv-focus="1"]:focus,
.live-list-item[data-tv-focus="1"].focused {
    background-color: #E50914;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.live-list-item:hover:not(:focus) {
    background-color: #2a2a2a;
}

.live-list-item.is-active-category {
    background-color: rgba(229, 9, 20, 0.3);
    font-weight: bold;
}

.live-list-item.is-playing {
    background-color: #333;
    font-weight: bold;
}

.live-list-item {
    position: relative;
    padding-left: 20px;
}

.live-list-item.is-playing {
    font-weight: 600;
}

.live-list-item.is-playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #E50914;
}

.live-list-item .channel-logo {
    margin-left: 15px;
}

.live-list-item.is-playing .channel-logo {
    margin-left: 25px;
}

.row-scroller {
    cursor: grab;
}

.row-scroller.active-drag {
    cursor: grabbing;
    user-select: none;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;    
    padding: 1.5rem 4% 1rem 4%;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: #141414;
    z-index: 10;
}

.page-title-centered {
    flex-grow: 1;
    text-align: center;
    margin: 0 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon-btn {
    background: transparent;
    border: none;
    color: #E50914;
    opacity: 0.8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon-btn:hover,
.header-icon-btn[data-tv-focus="1"]:focus {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    outline: 2px solid #E50914;
}

#login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;

    background-image: url('images/login_background.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-box {
    background-color: rgba(229, 9, 20, 0.85);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #B81D24;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    animation: slideInMessage 0.5s forwards;
}

@keyframes slideInMessage {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.expiry-warning {
    font-size: 1rem;
    font-weight: 600;
    color: #ff4d57;
    background-color: rgba(20, 20, 20, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 77, 87, 0.5);
}

.profile-page {
    padding: 2rem 3rem;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0a0a0;
}

.profile-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.profile-value.status-active {
    color: #4CAF50;
}

.profile-value.status-inactive,
.profile-value.status-expired,
.profile-value.status-banned {
    color: #E50914;
}

.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notification-modal-content {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    border: 1px solid #444;
}

.notification-modal-content h2 {
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.notification-modal-content ul {
    padding-left: 20px;
    max-height: 300px;
    overflow-y: auto;
}

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

.notification-modal-close {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    border: none;
    background-color: #E50914;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.sidebar-item .notification-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: #E50914;
    border-radius: 50%;
    border: 2px solid #1f1f1f;
}

.cast-scroller {
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cast-scroller::-webkit-scrollbar { display: none; }
.cast-scroller.active-drag { cursor: grabbing; user-select: none; }

.cast-item { width: 120px; }
.cast-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cast-item:hover .cast-avatar,
.cast-avatar:hover {
    border-color: #E50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.35);
}
