/**
 * @name Modern Glass
 * @description A theme that takes advantage of Modern Glass Styles with Light and Dark Theme.
 * @version 26.0.1
 * @updateUrl https://github.com/Fxy6969/Streamio-Glass-Theme/tree/cover
 * @author Fxy
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
    font-family: "Inter", sans-serif !important;

    scrollbar-width: none;
}

/* change the accent color from purple to white */
:root {
    --primary-accent-color: #fff;
    --background: rgb(20, 20, 20);

    --bg-color: rgba(250, 251, 255, 0.74);
    --bg-color-img: linear-gradient(45deg, #f4f4fc, #f4f4fc);
    --bg-progress-color: #0c0c0c;
    --bg-hover-color: rgba(12, 12, 12, 0.05);
    --bg-input-color: rgba(157, 157, 157, 0.74);

    --border-radius: 12px;

    --backdrop-filter: blur(20px) saturate(180%);
    --backdrop-filter2: blur(10px) saturate(150%);

    --box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 40px rgba(0, 0, 0, 0.55);
}

/* glass effect: */
/*     background: rgba(70, 70, 70, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important; */

html body {
    background: var(--background) !important;
    overflow-y: scroll !important;
}


/* Portal wrapper created by context-menu-fix plugin */
.context-menu-portal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 2147483647 !important;
}

.context-menu-portal > * {
    pointer-events: auto !important;
}

/* Glass styling for context menu inside portal */
.context-menu-portal .menu-container-B6cqK,
.context-menu-portal [class*="menu-container"][class*="menu-direction"] {
    z-index: 2147483647 !important;
    background: rgba(30, 30, 30, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
}

/* Context menu content - handle all class variations */
.context-menu-portal [class*="context-menu-content"] {
    background: transparent !important;
    padding: 6px !important;
}

/* Context menu title (stream info header) */
.context-menu-portal [class*="context-menu-title"] {
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 4px !important;
    white-space: pre-wrap !important;
}

/* Context menu options - handle all class variations */
.context-menu-portal [class*="context-menu-option-container"] {
    padding: 10px 16px !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.context-menu-portal [class*="context-menu-option-container"]:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Menu icons */
.context-menu-portal [class*="menu-icon"] {
    width: 18px !important;
    height: 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    flex-shrink: 0 !important;
}

/* Option labels - handle all class variations */
.context-menu-portal [class*="context-menu-option-label"] {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Original context menus (non-portal) */
.menu-container-B6cqK,
[class*="menu-container"][class*="menu-direction"],
[data-focus-lock-disabled] {
    z-index: 2147483647 !important;
}

[class*="context-menu-content"] {
    background: rgba(30, 30, 30, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

[class*="context-menu-title"] {
    padding: 12px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[class*="context-menu-option-container"] {
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
}

[class*="context-menu-option-container"]:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Reset stacking context on containers that might trap the menu */
.series-content-VkYHB,
[class*="series-content"] {
    isolation: auto !important;
    contain: none !important;
}

/* Side drawer - lower z-index than menu */
.side-drawer-r9EuA,
[class*="side-drawer"] {
    z-index: 100 !important;
}

/* Video containers should not create stacking contexts */
.video-container-ezBpK,
.videos-nRM2D,
.label-container-XOyzm {
    isolation: auto !important;
}

::-webkit-scrollbar {
    width: 0; /* removes scrollbar track */
    height: 0;
}

/* ========================= NAV BAR / HEADER ========================= */

.search-bar-container-asfq1 {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* Smaller collapsed width - just for icon */
    background: rgba(20, 20, 20, 0.42) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(8px) saturate(210%) !important;
    opacity: 1 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 9999;
    overflow: hidden; /* Hide overflowing content when collapsed */

    /* Smooth animation */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Expanded state */
.search-bar-container-asfq1:focus-within,
.search-bar-container-asfq1.expanded {
    width: 30% !important; /* Your original expanded width */
    justify-content: space-between !important;
}

.search-bar-container-asfq1 .submit-button-container-MImNa {
    align-items: center;
    display: flex;
    flex: none;
    flex-direction: row;
    height: var(--search-bar-size);
    justify-content: center;
    padding: 0 0.5rem;
    min-width: 40px; /* Ensure icon always has space */
    order: 2; /* Icon goes to the right when expanded */
}

/* Hide input when collapsed */
.search-bar-container-asfq1 .search-input-IQ0ZW {
    opacity: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    order: 1; /* Input goes to the left when expanded */

    transition:
        opacity 0.2s ease-in-out 0.15s,
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Show input when expanded */
.search-bar-container-asfq1:focus-within .search-input-IQ0ZW,
.search-bar-container-asfq1.expanded .search-input-IQ0ZW {
    opacity: 1 !important;
    width: 100% !important;
    padding: 0 0.5rem 0 0.5rem !important;
    flex: 1 !important;
}

.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja {
    width: 45px !important;
    background: rgba(90, 90, 90, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.7px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
    overflow: hidden !important;
    display: flex !important
;
    align-items: center !important;
    justify-content: center !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Expanded state for horizontal nav search bar */
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja:hover,
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja:focus,
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja:focus-within,
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja.expanded {
    width: 300px !important; /* Expanded width */
    justify-content: space-between !important;
}

/* Hide input when collapsed in horizontal nav */
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja .search-input-IQ0ZW {
    opacity: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;

    transition:
        opacity 0.2s ease-in-out 0.15s,
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Show input when expanded in horizontal nav */
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja:hover .search-input-IQ0ZW,
.horizontal-nav-bar-container-Y_zvK .search-bar-h60ja:focus .search-input-IQ0ZW,
.horizontal-nav-bar-container-Y_zvK
    .search-bar-h60ja:focus-within
    .search-input-IQ0ZW,
.horizontal-nav-bar-container-Y_zvK
    .search-bar-h60ja.expanded
    .search-input-IQ0ZW {
    opacity: 1 !important;
    width: 100% !important;
    padding: 8px 16px !important;
    flex: 1 !important;
}

/* Keep the search icon visible */
.horizontal-nav-bar-container-Y_zvK
    .search-bar-h60ja
    .submit-button-container-MImNa {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 35px !important;
    order: 2 !important; /* Icon goes to the right when expanded */
}

/* Style any menu/button container in the top nav */
#app nav[class*="horizontal-nav-bar"] > div[class*="button-container"],
#app
    nav[class*="horizontal-nav-bar"]
    > div[class*="button-container"],
#app
    nav[class*="horizontal-nav-bar"]
    [class*="buttons-container"]
    > div[class*="button-container"],
#app
    nav[class*="horizontal-nav-bar"]
    [class*="buttons-container"]
    > div[class*="menu-button-container"] {
    background: rgba(90, 90, 90, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transform: scale(0.8) !important;
    opacity: 1 !important;
}

/* Logo styling in header */
#app [class*="horizontal-nav-bar"] [class*="logo-container"] [class*="logo"] {
    filter: grayscale(1) brightness(1) !important;
}

/* ========================= VERTICAL NAV / SIDEBAR ========================= */

/* Position the vertical nav itself */
#app [class*="main-nav-bars-container"] [class*="vertical-nav-bar"] {
    position: absolute !important;
    left: 91px !important;
    top: 0.5px !important;
    z-index: 1 !important;
}

/* Style the vertical nav container (layout, spacing, scroll) */
#app [class*="vertical-nav-bar-container"] {
    align-items: center !important;
    background-color: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    overflow-y: auto !important;
    padding: 1rem 0 !important;
    scrollbar-width: none !important;
    width: auto !important;
    position: relative !important;
}

/* Optional custom label you add in markup */
.nav-label {
    color: var(--primary-accent-color) !important;
    font-weight: 600 !important;
    padding: 0 5px !important;
}

/* Tabs look */
#app [class*="nav-tab-button-container"] {
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    opacity: 1 !important;
    transform: translateY(0px) scale(1) !important;
}

/* Ensure nav content is flush left */
#app [class*="main-nav-bars-container"] [class*="nav-content-container"] {
    left: 0 !important;
}

/* Nav button sizing/padding */
#app [class*="vertical-nav-bar-container"] [class*="nav-tab-button"] {
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
    padding: 7px 10px !important;
    transition: padding 0.2s ease-out !important;
}

.meta-row-container-xtlB1
    .meta-items-container-qcuUA
    .meta-item-QFHCh.poster-shape-poster-LKBza {
    flex: calc(1 / var(--poster-shape-ratio)) 0 250px !important;
}

/* account dropdown */
/* settings menu */
.poster-image-NiV7O:hover {
    cursor: pointer;
}

/* settings menu */
.menu-container-B6cqK,
.menu-direction-bottom-left-Dvtqk,
.nav-menu-container-Pl25j {
    background-color: transparent !important;
}

.context-menu-portal .menu-container-B6cqK,
.context-menu-portal [class*="menu-container"][class*="menu-direction"] {
    background-color: transparent !important;
}

.label-container-XOyzm,
.menu-container-B6cqK {
    background-color: transparent !important;
}

.label-container-XOyzm {
    background-color: transparent !important;
    box-shadow: none !important;
}

.menu-container-B6cqK {
    background-color: transparent !important;
    box-shadow: none !important;
}

.modal-container-OuxEF .modal-dialog-container-DZMKq {
    background-color: #00000093;
    backdrop-filter: var(--backdrop-filter);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.label-container-_VXZt {
    display: none !important;
}

.player-container-wIELK .layer-qalDW.menu-layer-HZFG9 {
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 50px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.next-video-popup-container-H4wnL .button-container-i4F7t.play-button-Dluk6 {
    background: none !important;
    outline: none !important;
}

.next-video-popup-container-H4wnL .button-container-i4F7t.play-button-Dluk6:hover {
    background: var(--overlay-color) !important;
}

.option-container-m_jZq {
    height: 1.5rem;
    border-radius: 0.4rem;
    padding: 0 0.7rem;
}

.slider-container-nJz5F .track-gItfW {
    background-color: #ffffff;
}

.seek-bar-container-JGGTa .slider-hBDOf .thumb-PiTF5,
.seek-bar-container-JGGTa .slider-hBDOf .track-after-pUXC0 {
    background-color: #ffffff;
}

.seek-bar-container-JGGTa .slider-hBDOf .thumb-PiTF5:after {
    box-shadow: none;
}

.control-bar-container-xsWA7 .seek-bar-I7WeY {
    --thumb-size: 0.9rem;
    margin-left: 11px;
    margin-right: 11px;
}

.toasts-container-oKECy .toast-item-container-nG0uk {
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    opacity: 1 !important;
}

/* title container */
[class*="meta-item-container"] [class*="title-bar-container"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    overflow: visible;
    padding: 0;
    position: relative;
}

/* progress-bar container */
[class*="meta-item-container"]
    [class*="title-bar-container"]
    [class*="progress-bar-layer"] {
    height: 0.45rem;
    border-radius: 0.45rem;
    overflow: hidden;
    align-self: stretch;
    padding: inherit;
    margin-top: 10px;
    margin-left: 1.8rem;
    margin-right: 1.8rem;
    background-color: rgba(255, 255, 255, 0.1);
}

/* foreground */
[class*="meta-item-container"]
    [class*="progress-bar-layer"]
    [class*="progress-bar-w"] {
    background-color: var(--primary-foreground-color);
    height: 100%;
    position: relative;
}

[class*="meta-item-container"]
    [class*="progress-bar-layer"]
    [class*="progress-bar-background"] {
    background-color: transparent;
    opacity: 0.3;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

[class*="meta-item-container"]
    [class*="title-bar-container"]
    > *:not([class*="progress-bar-layer"]) {
    order: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: none;
    min-height: 1.3rem;
}

.meta-item-container-Tj0Ib .title-bar-container-1Ba0x .menu-label-container-ChuX8 .icon-gh1t9 {
    visibility: hidden;
}

.meta-item-container-Tj0Ib .poster-container-qkw48 .dismiss-icon-layer-BWztF {
     z-index: 50;
}

.meta-item-container-Tj0Ib .poster-container-qkw48 .new-videos-cwuD9 {
    z-index: 50;
}

.meta-item-container-Tj0Ib .poster-container-qkw48 .new-videos-cwuD9 .layer-dQmEe .icon-gh1t9 {
    color: rgb(90, 90, 90);
}

.meta-item-container-Tj0Ib .poster-container-qkw48 .new-videos-cwuD9 .layer-dQmEe .label-ZZ2m7 {
    color: rgb(90, 90, 90);
}

[class*="meta-item-container"] [class*="title-bar-container"] [class*="title"],
[class*="meta-item-container"]
    [class*="title-bar-container"]
    [class*="title-bar"] {
    margin-top: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[class*="meta-item-container"]
    [class*="title-bar-container"]:not(:has(> [class*="progress-bar-layer"]))
    > *:first-child {
    margin-top: 0.35rem;
}

/* scroll fix for hero */
.main-nav-bars-container-wNjS5 .nav-content-container-zl9hQ {
    top: calc(var(--horizontal-nav-bar-size) - 80px);
}

/* Hero Section */
.hero-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 80%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    -webkit-mask-image:
        linear-gradient(to top, transparent, black 45%),
        linear-gradient(to right, transparent, black 75%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    -webkit-mask-composite: intersect;

    mask-image:
        linear-gradient(to top, transparent, black 45%),
        linear-gradient(to right, transparent, black 75%);
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-composite: intersect;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    padding-left: 6%;
    bottom: 0;

    color: white;

    font-family: "Inter", sans-serif !important;
}

.hero-overlay-image {
    width: 90%;
    max-width: 420px;
    margin-bottom: 30px;
}

.hero-overlay-description {
    max-width: 500px;
    font-size: 17px;
    margin-bottom: 20px;
    color: white;
    font: normal;
}

.hero-overlay-info {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    font-weight: 600;
    color: rgba(190, 190, 190, 1);
}

.hero-overlay-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
}

.hero-overlay-button-watch,
.hero-overlay-button {
    border: 0;
    outline: 0;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.hero-overlay-button {
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--backdrop-filter);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}

.hero-overlay-button-watch {
    background: rgb(0 0 0 / 41%) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--backdrop-filter);
    opacity: 1 !important;
}

.hero-overlay-button-watch:hover,
.hero-overlay-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* only do this if  */
#app
    [class*="nav-tab-button-container"]:not(.selected)
    .board-container-DTN_b
    .board-content-container-ToQTz
    .board-content-nPWv1 {
    padding: 0;
}

.discover-container-L6OGL
    .discover-content-CRsRg
    .catalog-container-VNK_T
    .selectable-inputs-container-IRz50 {
    margin-top: 60px !important;
}

#app
    [class*="nav-tab-button-container"]:not(.selected)
    .meta-item-container-Tj0Ib {
    overflow: visible;
    padding: 0.2rem;
}

.library-container-zM_bj
    .library-content-PgX4O
    .selectable-inputs-container-hR3or {
    margin-top: 4.3rem !important;
}

.calendar-cH2jw .content-wBwrQ {
    padding-top: 6rem !important;
    padding-bottom: 14px !important;
    padding-left: 14px !important;
}

.addons-container-ogGYu
    .addons-content-zhFBl
    .selectable-inputs-container-tUul1 {
    margin-top: 4.6rem !important;
}

.settings-container-_g1tS .settings-content-co5eU .sections-container-ZaZpD {
    padding: 5rem 3rem !important;
}

.discover-container-L6OGL
    .discover-content-CRsRg
    .catalog-container-VNK_T
    .meta-items-container-n8vNz {
    padding: 0;
    z-index: 1;
}

.discover-container-L6OGL
    .discover-content-CRsRg
    .catalog-container-VNK_T
    .meta-items-container-n8vNz {
    align-items: start;
    align-self: stretch;
    display: grid;
    flex: 1;
    grid-auto-rows: max-content;
    grid-gap: 0;
    margin-right: 1rem;
    overflow-y: auto;
}

.search-container-uXEFf .search-content-LX6un {
    height: 100%;
    overflow-y: auto;
    padding: 0 1rem;
    padding-top: 4.5rem;
    width: 100%;
}

/* hero */
.hero-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-control-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    visibility: hidden;
}

.hero-control-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.hero-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 0.9);
}

#heroImage,
#heroLogo,
#heroDescription,
#heroInfo {
    transition: opacity 0.3s ease-in-out;
}

.hero-overlay-button-watch svg,
.hero-overlay-button svg {
    margin-right: 4px;
}

/* IMDB Icon and Rating Styles */
.rating-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.imdb-icon {
    width: 16px;
    height: 16px;
    fill: #f5c518;
    color: #f5c518;
    flex-shrink: 0;
}

#heroLoadingScreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.loading-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

.loading-content {
    position: relative !important;
    z-index: 10;
    text-align: center;
    color: white;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

#heroLoadingScreen .loading-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Prevent any interference during ghost clicks */
body.ghost-clicking {
    overflow: hidden !important;
}

body.ghost-clicking #heroLoadingScreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

.loading-logo-container {
    position: relative;
    display: inline-block;
    height: 100px;
    margin-bottom: 30px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    min-height: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(139, 69, 255, 0.3);
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #fff);
    background-size: 200% 100%;
    border-radius: 1px;
    width: 0%;
    transition: width 0.5s ease;
    animation: shimmer 2s linear infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* ========================= ENHANCED VERTICAL NAV ANIMATIONS ========================= */

/* Base nav container with smooth positioning */
#app [class*="vertical-nav-bar-container"] {
    align-items: center !important;
    background-color: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    overflow-y: auto !important;
    padding: 1rem 0 !important;
    scrollbar-width: none !important;
    width: auto !important;
    position: relative !important;
}

/* Enhanced nav button base styling with smooth transitions */
#app [class*="nav-tab-button-container"] {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 999px !important;
    transform: translateZ(0) !important; /* Hardware acceleration */
    will-change: transform, background-color, box-shadow !important;
}

/* Smooth hover effects for non-selected tabs */
#app [class*="nav-tab-button-container"]:not(.selected):hover {
    background: rgba(90, 90, 90, 0.15) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced selected tab styling with smoother appearance */
#app [class*="nav-tab-button-container"].selected {
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transform: translateY(0px) scale(1) !important;
}

/* Smooth nav label animations */
.nav-label {
    color: var(--primary-accent-color) !important;
    font-weight: 600 !important;
    padding: 0 5px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: color, transform !important;
}

/* Selected label enhancement */
#app [class*="nav-tab-button-container"].selected .nav-label {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(0) !important;
}

/* Non-selected label subtle animation */
#app [class*="nav-tab-button-container"]:not(.selected) .nav-label {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(1px) !important;
}

/* Hover effect for labels */
#app [class*="nav-tab-button-container"]:not(.selected):hover .nav-label {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(0) !important;
}

/* Enhanced nav button sizing/padding with transitions */
#app [class*="vertical-nav-bar-container"] [class*="nav-tab-button"] {
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
    padding: 7px 10px !important;
    transition: padding 0.2s ease-out !important;
}

/* Subtle active/press animation */
#app [class*="nav-tab-button-container"]:active {
    transform: translateY(1px) scale(0.98) !important;
    transition: all 0.1s ease-out !important;
}

/* Smooth focus states */
#app [class*="nav-tab-button-container"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3) !important;
    outline-offset: 2px !important;
    transition: outline 0.2s ease-out !important;
}

/* Activate the indicator when any tab is hovered */
#app [class*="vertical-nav-bar-container"]:hover::before {
    transform: translateY(-50%) scaleX(1) !important;
}

.menu-xeE06 {
    padding: 7rem 1.5rem !important;
}

.custom-episode-title {
    font-size: 1em !important;
    font-weight: normal !important;
    margin-left: 11px !important;
    color: rgb(204, 204, 204) !important;
}

.custom-series-name {
    font-size: 2.4rem !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    margin-left: 11px !important;
    color: rgb(255, 255, 255) !important;
}

/* ========================= PLAYER TITLE FIX ========================= */
/* Hide the stream source/addon name that shows by default */
.player-container-wIELK
    .info-bar-container-Hp7be
    .title-container-p70JY
    .title-GU3f7 {
    display: none !important;
}

/* Show the actual video/episode title instead */
.player-container-wIELK
    .info-bar-container-Hp7be
    .title-container-p70JY
    .video-title-r7ufx,
.player-container-wIELK
    .info-bar-container-Hp7be
    .title-container-p70JY
    [class*="video-title"],
.player-container-wIELK
    .info-bar-container-Hp7be
    .title-container-p70JY
    [class*="meta-title"] {
    display: block !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Alternative: If the title still shows stream source, this targets the label directly */
.player-container-wIELK .control-bar-container-xsWA7 [class*="title"] {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Make sure the info bar shows proper content */
.player-container-wIELK .info-bar-container-Hp7be {
    display: flex !important;
    align-items: center !important;
}

.seek-bar-container-JGGTa .label-QFbsS {
    width: auto !important;
}

.control-bar-container-xsWA7
    .control-bar-buttons-container-SWhkU
    .control-bar-button-FQUsj
    .icon-qy6I6 {
    height: 2.3rem !important;
}

.control-bar-container-xsWA7
    .control-bar-buttons-container-SWhkU
    .control-bar-button-FQUsj {
    height: auto !important;
}

.control-bar-container-xsWA7 .control-bar-buttons-container-SWhkU {
    align-items: center;
    display: flex;
    flex-direction: row;
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    margin-bottom: 15px !important;
    margin-top: 5px !important;
    height: 50px !important;
}

.slider-container-nJz5F .track-gItfW {
    background: rgba(255, 255, 255, 0.62) !important;
    border-radius: 999px !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    flex: 1;
    height: var(--track-size);
    width: 100%;
    z-index: 0;
}

.icon-qy6I6 {
    width: 2.3rem !important;
}

.control-bar-container-xsWA7
    .control-bar-buttons-container-SWhkU
    .control-bar-button-FQUsj:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.player-container-wIELK .layer-qalDW.side-drawer-button-layer-RrB8k {
    left: initial;
    position: fixed;
    right: -4rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(70, 70, 70, 0.22) !important;
    border-radius: 999px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* ========================= PLAY BUTTON CLEAN HOVER EFFECT ========================= */

/* Ensure poster container is positioned for absolute overlays */
.meta-item-container-Tj0Ib .poster-container-qkw48 {
    position: relative !important;
    overflow: hidden !important;
}

/* DEFAULT STATE: Center play button */
.meta-item-container-Tj0Ib .poster-container-qkw48 .play-icon-layer-vpQIo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide ALL background layers that create dark squares/boxes behind play button */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    .play-icon-background-Uazjh,
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    .play-icon-background-Uazjh::before,
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    .play-icon-background-Uazjh::after,
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    [class*="background"],
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    [class*="backdrop"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
}

/* Default play button ring - subtle and clean */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    .play-icon-outer-r3iKR {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Default play icon color */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .play-icon-layer-vpQIo
    .play-icon-QmEEA {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Create full-poster gray overlay on hover (hidden by default) */
.meta-item-container-Tj0Ib .poster-container-qkw48::before {
    content: "";
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: inherit !important;
}

/* HOVER STATE: Show gray overlay over entire poster */
.meta-item-container-Tj0Ib .poster-container-qkw48:hover::before {
    opacity: 1 !important;
}

/* HOVER STATE: Frosted white glass play button ring */
.meta-item-container-Tj0Ib
    .poster-container-qkw48:hover
    .play-icon-layer-vpQIo
    .play-icon-outer-r3iKR {
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(16px) saturate(200%) brightness(110%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.02) !important;
}

/* HOVER STATE: Bright white play icon */
.meta-item-container-Tj0Ib
    .poster-container-qkw48:hover
    .play-icon-layer-vpQIo
    .play-icon-QmEEA {
    color: rgba(255, 255, 255, 1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

/* ========================= WATCHED FLAG GLASS STYLING ========================= */

/* Watched flag container - keep original position */
.upcoming-watched-container-msCaq {
    z-index: 20 !important;
}

/* Watched flag inner container - glass morphism with yellow tinge */
.upcoming-watched-container-msCaq .watched-container-gvzs3 {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(255, 220, 100, 0.35) !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 240, 150, 0.5) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255, 200, 80, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effect for watched flag */
.upcoming-watched-container-msCaq .watched-container-gvzs3:hover {
    background: rgba(255, 210, 80, 0.45) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 240, 150, 0.6) !important;
    backdrop-filter: blur(14px) saturate(180%) brightness(105%) !important;
    border: 1px solid rgba(255, 190, 60, 0.5) !important;
    transform: scale(1.02) !important;
}

/* Watched flag icon */
.upcoming-watched-container-msCaq .flag-icon-RDrvf {
    width: 14px !important;
    height: 14px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Watched flag label */
.upcoming-watched-container-msCaq .flag-label-zJloD {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhance on hover */
.upcoming-watched-container-msCaq
    .watched-container-gvzs3:hover
    .flag-icon-RDrvf,
.upcoming-watched-container-msCaq
    .watched-container-gvzs3:hover
    .flag-label-zJloD {
    color: rgba(255, 255, 255, 1) !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)) !important;
}

/* ========================= UPCOMING FLAG GLASS STYLING (GREEN) ========================= */

/* Upcoming flag container - keep original position */
.upcoming-watched-container-msCaq {
    z-index: 20 !important;
}

/* Upcoming flag inner container - glass morphism with green tinge */
.upcoming-watched-container-msCaq .upcoming-container-LXfQ7 {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(100, 255, 150, 0.35) !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(150, 255, 180, 0.5) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(80, 255, 120, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effect for upcoming flag */
.upcoming-watched-container-msCaq .upcoming-container-LXfQ7:hover {
    background: rgba(90, 255, 140, 0.45) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(150, 255, 180, 0.6) !important;
    backdrop-filter: blur(14px) saturate(180%) brightness(105%) !important;
    border: 1px solid rgba(70, 255, 110, 0.5) !important;
    transform: scale(1.02) !important;
}

/* Upcoming flag label */
.upcoming-watched-container-msCaq .upcoming-container-LXfQ7 .flag-label-zJloD {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhance on hover */
.upcoming-watched-container-msCaq
    .upcoming-container-LXfQ7:hover
    .flag-label-zJloD {
    color: rgba(255, 255, 255, 1) !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)) !important;
}

.meta-item-container-Tj0Ib {
    overflow: hidden;
}

.custom-icon {
    width: 1.9rem !important;
    height: 1.6rem !important;
}

/* SHIT CODE WARNING
   TODO: Clean up this code cant rn cuz im lazy */
.nav-menu-container-Pl25j,
.nav-menu-container-Pl25j {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.meta-links-container-dh69_ .links-container-C8Mw9 .link-container-gHxPW {
    background: rgba(70, 70, 70, 0.22) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    box-shadow:
        0 0px 0px rgba(0, 0, 0, 0.2),
        0 0px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.meta-preview-container-o22hc
    .action-buttons-container-XbKVa
    .action-button-XIZa3.wide {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.meta-preview-container-o22hc .ratings-zUtHH {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.meta-preview-container-o22hc
    .action-buttons-container-XbKVa
    .action-button-XIZa3 {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.chip-L3r9A.active-jnhyP {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.menu-xeE06 .button-DNmYL.selected-S7SeK {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.addon-details-modal-container-aBFaQ .cancel-button-zuUX6 {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    opacity: 1;
}

.modal-container-OuxEF .modal-dialog-container-DZMKq {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.meta-item-container-Tj0Ib .poster-container-qkw48,
.meta-item-container-Tj0Ib .poster-image-NiV7O {
    position: relative !important; /* ensure overlay absolutely positions over poster */
}

/* Make sure the watched layer covers the full poster image (not the small icon circle) */
.meta-item-container-Tj0Ib .poster-container-qkw48 .watched-icon-layer-bi3DO,
.meta-item-container-Tj0Ib .poster-image-NiV7O .watched-icon-layer-bi3DO {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.45) !important; /* slightly lighter darken */
    color: #fff !important;
    z-index: 50 !important;
    border-radius: inherit !important;
    backdrop-filter: blur(
        2px
    ) !important; /* very subtle blur - just enough to soften */
    border: 0 !important;
    pointer-events: none !important; /* let clicks pass through if needed */
    opacity: 1 !important;
    transition: opacity 0.25s ease !important;
}

.library-container-zM_bj .meta-item-container-Tj0Ib .poster-container-qkw48 .watched-icon-layer-bi3DO {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
    backdrop-filter: none !important;
}

/* Hide any existing inner icons/svg so only our pseudo-elements show */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .watched-icon-layer-bi3DO
    > *,
.meta-item-container-Tj0Ib .poster-image-NiV7O .watched-icon-layer-bi3DO > *,
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .watched-icon-layer-bi3DO
    svg,
.meta-item-container-Tj0Ib .poster-image-NiV7O .watched-icon-layer-bi3DO svg,
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .watched-icon-layer-bi3DO
    .icon,
.meta-item-container-Tj0Ib .poster-image-NiV7O .watched-icon-layer-bi3DO .icon {
    display: none !important;
}

/* Ensure no padding/margins interfere with centering */
.meta-item-container-Tj0Ib .poster-container-qkw48 .watched-icon-layer-bi3DO,
.meta-item-container-Tj0Ib .poster-image-NiV7O .watched-icon-layer-bi3DO {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* White checkmark */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .watched-icon-layer-bi3DO::before,
.meta-item-container-Tj0Ib
    .poster-image-NiV7O
    .watched-icon-layer-bi3DO::before {
    content: "";
    display: block;
    width: 32px;
    height: 20px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
    margin-bottom: 6px; /* spacing between check and label */
    box-sizing: border-box;
}

/* Watched label */
.meta-item-container-Tj0Ib
    .poster-container-qkw48
    .watched-icon-layer-bi3DO::after,
.meta-item-container-Tj0Ib
    .poster-image-NiV7O
    .watched-icon-layer-bi3DO::after {
    content: "Watched";
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.6px;
    text-transform: none;
}

.dropdown-MWaxp {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.search-bar-container-p4tSt {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.add-addon-modal-container-KR5ny
    .modal-dialog-content-Xgv7Z
    .addon-url-input-ucetZ:focus,
.add-addon-modal-container-KR5ny
    .modal-dialog-content-Xgv7Z
    .addon-url-input-ucetZ:hover {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.option-vFOAS .content-P2T0i .button {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.multiselect-menu-qMdaj .multiselect-button-XXdgA {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 0.1px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.cell-l3eWl.today-G8kuO .heading-TYXvp .day-nttmc {
    color: rgb(20, 20, 20) !important;
    background: var(--bg-color) !important;
}

.item-PwXPg.today-JJfHO .heading-aqSxF {
    background: rgba(255, 255, 255, 0.12) !important;
}

.shortcut-container-iOrn9 kbd {
    background: rgba(70, 70, 70, 0.22) !important;
    box-shadow:
        0 8px 0px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: var(--backdrop-filter) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.library-container-zM_bj .library-content-PgX4O .meta-items-container-IKrND {
    align-items: start;
}

/* ========================= SIDE DRAWER (EPISODE LIST) GLASS STYLING ========================= */

/* Side drawer main container - glass background */
.side-drawer-r9EuA.side-drawer-layer-CZtJ1 {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3) !important;
    z-index: 100 !important;
}

/* Ensure menus inside side drawer can break out */
.side-drawer-r9EuA .menu-container-B6cqK,
.side-drawer-r9EuA [class*="menu-container"],
.side-drawer-r9EuA [data-focus-lock-disabled] {
    position: fixed !important;
    z-index: 2147483647 !important;
}

/* Close button - glass style */
.side-drawer-r9EuA .close-button-ruzkn {
    background: rgba(70, 70, 70, 0.25) !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.side-drawer-r9EuA .close-button-ruzkn:hover {
    background: rgba(90, 90, 90, 0.35) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

/* Season navigation buttons */
.seasons-bar-container-nOZjG .prev-season-button-bs1GQ,
.seasons-bar-container-nOZjG .next-season-button-RrYAq {
    background: rgba(70, 70, 70, 0.25) !important;
    border-radius: 8px !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.seasons-bar-container-nOZjG .prev-season-button-bs1GQ:not(.disabled):hover,
.seasons-bar-container-nOZjG .next-season-button-RrYAq:not(.disabled):hover {
    background: rgba(90, 90, 90, 0.35) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.seasons-bar-container-nOZjG .prev-season-button-bs1GQ.disabled,
.seasons-bar-container-nOZjG .next-season-button-RrYAq.disabled {
    opacity: 0.4 !important;
}

/* Season selector dropdown */
.seasons-bar-container-nOZjG .multiselect-menu-qMdaj .multiselect-button-XXdgA {
    background: rgba(70, 70, 70, 0.25) !important;
    border-radius: 8px !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.seasons-bar-container-nOZjG
    .multiselect-menu-qMdaj
    .multiselect-button-XXdgA:hover {
    background: rgba(90, 90, 90, 0.35) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Episode list items - glass cards */
.side-drawer-r9EuA .video-container-ezBpK {
    background: rgba(50, 50, 50, 0.2) !important;
    border-radius: 12px !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 8px !important;
}

/* Episode thumbnail styling */
.side-drawer-r9EuA .thumbnail-container-Zm8Cl {
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Play button icon in side drawer - frosted glass style */
.side-drawer-r9EuA .icon-rAZvO,
.side-drawer-r9EuA svg[viewBox="0 0 512 512"]:has(path[d*="231.137"]) {
    width: 48px !important;
    height: 48px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Container for play icon if it exists */
.side-drawer-r9EuA .thumbnail-container-Zm8Cl > svg,
.side-drawer-r9EuA .thumbnail-container-Zm8Cl [class*="icon"] {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

/* Episode progress bar - glass style */
.side-drawer-r9EuA .progress-bar-container-w8eFT {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.side-drawer-r9EuA .progress-bar-E23CT {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
    border-radius: 2px !important;
}

.side-drawer-r9EuA .progress-bar-background-Q7aEH {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Episode title styling */
.side-drawer-r9EuA .title-container-NcfV9 {
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Release date label */
.side-drawer-r9EuA .released-container-XLPqf {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 11px !important;
}

/* Meta preview container at top */
.side-drawer-r9EuA .side-drawer-meta-preview-pB8v6 {
    background: rgba(50, 50, 50, 0.25) !important;
    border-radius: 12px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

/* Show logo */
.side-drawer-r9EuA .logo-X3hTV {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) !important;
}

/* Description text */
.side-drawer-r9EuA .description-container-yi8iU {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.5 !important;
}

/* Runtime and release labels */
.side-drawer-r9EuA .runtime-label-TzAGI,
.side-drawer-r9EuA .release-info-label-LPJMB {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
}

/* ========================= DATA ENRICHMENT PLUGIN STYLES ========================= */

/* Data Enrichment Container - placed at bottom of side drawer */
.data-enrichment-container {
    padding: 16px 0;
    margin-top: 16px;
}

/* TMDB Rating Badge - inline with other ratings */
.enhanced-tmdb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(1, 210, 119, 0.15);
    border: 1px solid rgba(1, 210, 119, 0.3);
    border-radius: 6px;
    margin: 8px 0;
}

.enhanced-tmdb-badge .tmdb-icon {
    font-size: 14px;
}

.enhanced-tmdb-badge .tmdb-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.enhanced-tmdb-badge .tmdb-score {
    font-size: 13px;
    font-weight: 700;
    color: #01d277;
}

/* Section Headers */
.enhanced-section-header {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    padding: 0 16px;
}

/* Carousel Wrapper with Scroll Buttons */
.enhanced-carousel {
    position: relative;
    margin-bottom: 32px;
}

.enhanced-carousel-wrapper {
    position: relative;
}

.enhanced-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 16px 16px 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.enhanced-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.enhanced-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.enhanced-scroll-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
}

.enhanced-scroll-left {
    left: 4px;
}

.enhanced-scroll-right {
    right: 4px;
}

/* Enhanced Cast Section */
.enhanced-cast-section {
    margin-bottom: 24px;
}

.enhanced-cast-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 16px 16px 16px;
    scrollbar-width: none;
}

.enhanced-cast-container::-webkit-scrollbar {
    display: none;
}

.enhanced-cast-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: fit-content;
    padding: 10px 18px 10px 10px;
    background: rgba(70, 70, 70, 0.25);
    border-radius: 999px;
    backdrop-filter: var(--backdrop-filter);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.enhanced-cast-item:hover {
    background: rgba(90, 90, 90, 0.35);
    transform: translateY(-2px);
}

.enhanced-cast-image-container {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.enhanced-cast-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enhanced-cast-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(100, 100, 100, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.enhanced-cast-placeholder svg {
    width: 28px;
    height: 28px;
}

.enhanced-cast-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.enhanced-cast-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

.enhanced-cast-character {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* Poster Items (Collection & Similar) */
.enhanced-poster-item {
    flex-shrink: 0;
    width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enhanced-poster-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.enhanced-poster-item img,
.enhanced-similar-poster,
.enhanced-collection-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.enhanced-poster-title,
.enhanced-similar-title,
.enhanced-collection-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.enhanced-similar-placeholder,
.enhanced-collection-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: rgba(70, 70, 70, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================= DATA ENRICHMENT SETTINGS ========================= */

/* Settings section container */
.data-enrichment-settings-section {
    background: rgba(40, 40, 45, 0.6) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

/* Section heading */
.data-enrichment-settings-section .section-heading-Zp2bz {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background 0.2s ease !important;
}

.data-enrichment-settings-section .section-heading-Zp2bz:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Icon styling */
.data-enrichment-settings-section .icon-mYqgJ {
    font-size: 18px !important;
    margin-right: 12px !important;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.5)) !important;
}

/* Section label */
.data-enrichment-settings-section .section-label-EgxHt {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 0.3px !important;
}

/* Settings content area */
.data-enrichment-settings-section .de-settings-content {
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.data-enrichment-settings-section .de-settings-content.de-collapsed {
    display: none !important;
}

/* Option containers */
.data-enrichment-settings-section .option-container-pZ9Ip {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Toggle row layout */
.data-enrichment-settings-section .de-toggle-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.2s ease !important;
}

.data-enrichment-settings-section .de-toggle-row:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Labels */
.data-enrichment-settings-section .label-YVD3e {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Input field styling */
.data-enrichment-settings-section .de-input {
    flex: 1 !important;
    padding: 12px 16px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-family:
        "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.data-enrichment-settings-section .de-input:focus {
    border-color: rgba(76, 175, 80, 0.5) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15) !important;
}

.data-enrichment-settings-section .de-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-family: inherit !important;
}

/* Save button */
.data-enrichment-settings-section .de-save-btn {
    padding: 12px 24px !important;
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.8),
        rgba(56, 142, 60, 0.8)
    ) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 10px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

.data-enrichment-settings-section .de-save-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 1),
        rgba(56, 142, 60, 1)
    ) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4) !important;
}

.data-enrichment-settings-section .de-save-btn:active {
    transform: translateY(0) !important;
}

/* Hint text */
.data-enrichment-settings-section .de-hint {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 4px !important;
}

/* Toggle switch */
.data-enrichment-settings-section .de-toggle {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
}

.data-enrichment-settings-section .de-toggle input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.data-enrichment-settings-section .de-toggle-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 26px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.data-enrichment-settings-section .de-toggle-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 2px !important;
    bottom: 2px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.data-enrichment-settings-section .de-toggle input:checked + .de-toggle-slider {
    background: linear-gradient(
        135deg,
        rgba(76, 175, 80, 0.8),
        rgba(56, 142, 60, 0.8)
    ) !important;
    border-color: rgba(76, 175, 80, 0.4) !important;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.3) !important;
}

.data-enrichment-settings-section
    .de-toggle
    input:checked
    + .de-toggle-slider:before {
    transform: translateX(22px) !important;
    background: white !important;
}

.data-enrichment-settings-section .de-toggle:hover .de-toggle-slider {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Status indicator */
.data-enrichment-settings-section .de-status {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 8px !important;
}

.data-enrichment-settings-section .de-status-active {
    background: rgba(76, 175, 80, 0.15) !important;
    color: rgba(129, 199, 132, 1) !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
}

.data-enrichment-settings-section .de-status-inactive {
    background: rgba(244, 67, 54, 0.15) !important;
    color: rgba(239, 154, 154, 1) !important;
    border: 1px solid rgba(244, 67, 54, 0.2) !important;
}

.data-enrichment-settings-section .de-status-warning {
    background: rgba(255, 152, 0, 0.15) !important;
    color: rgba(255, 183, 77, 1) !important;
    border: 1px solid rgba(255, 152, 0, 0.2) !important;
}

/* Enhanced Video Player - Subtitle Customization Styles (Stremio Style) */

/* Main Container */
.enhanced-subtitle-customize-section {
    align-self: stretch;
    color: var(--primary-foreground-color);
    flex: none;
    font-weight: 500;
    padding: 1.5rem 1.75rem;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 8px;
}

.enhanced-subtitle-customize-section::-webkit-scrollbar {
    width: 8px;
}

.enhanced-subtitle-customize-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.enhanced-subtitle-customize-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.enhanced-subtitle-customize-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Header */
.enhanced-subtitle-customize-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: inherit;
    opacity: 0.95;
    letter-spacing: -0.01em;
}

.enhanced-header-icon {
    font-size: 16px;
    line-height: 1;
}

/* Presets Bar */
.enhanced-subtitle-presets-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.enhanced-subtitle-preset-btn {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.01em;
}

.enhanced-subtitle-preset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.enhanced-subtitle-preset-btn.selected {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.enhanced-subtitle-preset-btn:active {
    transform: translateY(0);
}

/* Preview Section */
.enhanced-subtitle-preview-section {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.enhanced-subtitle-preview-label {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 8px;
}

.enhanced-subtitle-preview-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.enhanced-subtitle-preview-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 100%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 70%
        );
    pointer-events: none;
}

.enhanced-subtitle-preview-text {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8px 16px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    /* Default styles that will be overridden by JavaScript */
    font-size: 1em;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.8);
    outline: 1px solid black;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: normal;
    line-height: 1.4;
}

/* Settings Grid */
.enhanced-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

/* Stepper Control */
.enhanced-stepper {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.enhanced-stepper-header {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.enhanced-stepper-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.enhanced-stepper-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.enhanced-stepper-button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.enhanced-stepper-button:active:not(.disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

.enhanced-stepper-button.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.enhanced-stepper-icon {
    width: 14px;
    height: 14px;
    color: white;
}

.enhanced-stepper-value {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.02em;
}

/* Select Control */
.enhanced-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.enhanced-select-header {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.enhanced-select {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: inherit;
    font-size: 12.5px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.enhanced-select:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.enhanced-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.enhanced-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}

/* Color Picker Control */
.enhanced-color-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.enhanced-color-header {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.enhanced-color-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.enhanced-color-input {
    width: 44px;
    height: 32px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.enhanced-color-input:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.enhanced-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.enhanced-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.enhanced-color-value {
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex: 1;
    font-family: "Courier New", monospace;
}

/* Text Input Control */
.enhanced-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 7px;
    grid-column: 1 / -1; /* Full width for text inputs */
}

.enhanced-text-header {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.enhanced-text-input {
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: inherit;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
    font-family: "Courier New", monospace;
}

.enhanced-text-input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.enhanced-text-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.enhanced-text-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}
