/**
 * One Piece Stream Theme Stylesheet
 * 1:1 Pixel-accurate styling matching Screenshot 1 & Screenshot 2
 */

/* ==========================================================================
   1. ADMIN BAR & BASE OVERRIDES
   ========================================================================== */
body.admin-bar .op-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .op-header {
        top: 46px !important;
    }
}

/* ==========================================================================
   2. HEADER & NAVBAR
   ========================================================================== */
.op-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--op-bg-surface);
    border-bottom: 1px solid var(--op-border);
    backdrop-filter: blur(12px);
    transition: var(--op-transition);
}

.op-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.op-header-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.op-logo-link {
    display: flex;
    align-items: center;
}

.op-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.op-desktop-nav .op-nav-list {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.op-nav-item {
    position: relative;
}

.op-nav-item a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--op-text-muted);
    padding: 21px 0;
    display: inline-block;
    transition: var(--op-transition);
}

.op-nav-item a:hover {
    color: var(--op-text-main);
}

.op-nav-item.is-active a,
.op-nav-item.current-menu-item a {
    color: #38bdf8;
    font-weight: 600;
}

.op-nav-item.is-active::after,
.op-nav-item.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--op-primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--op-primary-glow);
}

.op-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Search Form */
.op-search-form {
    position: relative;
}

.op-search-input-wrap {
    display: flex;
    align-items: center;
    background-color: var(--op-bg-input);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-full);
    padding: 6px 14px 6px 18px;
    width: 230px;
    transition: var(--op-transition);
}

.op-search-input-wrap:focus-within {
    width: 270px;
    border-color: var(--op-primary);
    box-shadow: 0 0 0 2px var(--op-primary-glow);
}

.op-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--op-text-main);
    width: 100%;
}

.op-search-input::placeholder {
    color: var(--op-text-dim);
}

.op-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--op-text-muted);
    transition: var(--op-transition);
}

.op-search-btn:hover {
    color: var(--op-primary);
}

.op-icon-search {
    width: 15px;
    height: 15px;
}

.op-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    box-shadow: var(--op-shadow-lg);
    display: none;
    max-height: 360px;
    overflow-y: auto;
    z-index: 1050;
}

.op-search-dropdown.is-open {
    display: block;
}

.op-theme-toggle,
.op-profile-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--op-radius-full);
    background-color: var(--op-bg-input);
    border: 1px solid var(--op-border);
    color: var(--op-text-muted);
    transition: var(--op-transition);
}

.op-theme-toggle:hover,
.op-profile-btn:hover {
    color: var(--op-text-main);
    border-color: var(--op-primary);
    background-color: var(--op-bg-card-hover);
}

.op-theme-toggle svg,
.op-profile-btn svg {
    width: 17px;
    height: 17px;
}

[data-theme="dark"] .op-icon-sun {
    display: none;
}

[data-theme="light"] .op-icon-moon {
    display: none;
}

.op-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 17px;
}

.op-mobile-toggle .op-bar {
    width: 100%;
    height: 2px;
    background-color: var(--op-text-main);
    border-radius: 2px;
}

.op-mobile-drawer {
    display: none;
    background-color: var(--op-bg-surface);
    border-top: 1px solid var(--op-border);
    padding: 18px 20px 24px;
}

.op-mobile-drawer.is-open {
    display: block;
}

.op-mobile-search input {
    width: 100%;
    padding: 10px 16px;
    background-color: var(--op-bg-input);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    color: var(--op-text-main);
    margin-bottom: 16px;
}

.op-mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.op-mobile-nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--op-text-muted);
    display: block;
    padding: 6px 0;
}


/* ==========================================================================
   3. 2-COLUMN MAIN LAYOUT (Screenshot 1 & Screenshot 2)
   ========================================================================== */
.op-main-site {
    padding-top: 24px;
    padding-bottom: 60px;
    flex: 1;
}

.op-main-fullwidth {
    width: 100%;
}

.op-layout-grid {
    display: block;
    width: 100%;
}

.op-main-column {
    width: 100%;
    min-width: 0;
}

/* ==========================================================================
   4. HERO SPOTLIGHT CARD (Screenshot 1)
   ========================================================================== */
.op-hero-card {
    position: relative;
    display: flex;
    background: linear-gradient(135deg, #0c1527 0%, #070d19 100%);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    min-height: 250px;
    box-shadow: var(--op-shadow-md);
    margin-bottom: 20px;
}

.op-hero-content {
    flex: 1;
    z-index: 2;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 58%;
}

.op-badge-type {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--op-badge-blue);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2.5px 9px;
    border-radius: var(--op-radius-sm);
    margin-bottom: 10px;
}

.op-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--op-text-main);
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.op-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--op-text-muted);
    margin-bottom: 12px;
}

.op-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--op-accent-gold);
    font-weight: 700;
}

.op-star {
    width: 14px;
    height: 14px;
}

.op-meta-divider {
    color: var(--op-border);
}

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

.op-status {
    color: #38bdf8;
    font-weight: 500;
}

.op-hero-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--op-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.op-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--op-radius-md);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--op-transition);
}

.op-btn-primary {
    background-color: var(--op-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--op-primary-glow);
}

.op-btn-primary:hover {
    background-color: var(--op-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--op-primary-glow);
}

.op-btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--op-border);
    color: var(--op-text-main);
}

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

.op-btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: var(--op-radius-sm);
}

.op-icon-play {
    width: 13px;
    height: 13px;
}

.op-icon-bookmark {
    width: 15px;
    height: 15px;
}

/* Luffy & Going Merry Hero Banner Artwork */
.op-hero-banner-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    overflow: hidden;
    pointer-events: none;
}

.op-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.op-hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(90deg, #070c18 0%, rgba(7, 12, 24, 0) 100%);
}

bottom: 0;
width: 35%;
background: linear-gradient(to right, #0c1527 0%, rgba(12, 21, 39, 0) 100%);
}


/* ==========================================================================
   5. TABS BAR (Episodes | Overview | Related)
   ========================================================================== */
.op-tabs-bar {
    border-bottom: 1px solid var(--op-border);
    margin-bottom: 18px;
}

.op-tabs-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.op-tab-item {
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--op-text-muted);
    position: relative;
    transition: var(--op-transition);
}

.op-tab-item:hover {
    color: var(--op-text-main);
}

.op-tab-item.is-active {
    color: #38bdf8;
}

.op-tab-item.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--op-primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--op-primary-glow);
}

.op-tab-content {
    display: none;
}

.op-tab-content.is-active {
    display: block;
    animation: opFadeIn 0.22s ease-out;
}


/* ==========================================================================
   6. EPISODES 2-COLUMN GRID (Screenshot 1)
   ========================================================================== */
.op-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.op-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--op-text-main);
}

.op-header-selectors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.op-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.op-style-select-wrap {
    position: relative;
}

.op-season-select {
    appearance: none;
    background-color: var(--op-bg-input);
    border: 1px solid var(--op-border);
    color: var(--op-text-main);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 32px 7px 12px;
    border-radius: var(--op-radius-md);
    cursor: pointer;
    outline: none;
    transition: var(--op-transition);
}

.op-style-select {
    font-weight: 600;
    color: var(--op-primary);
    border-color: rgba(2, 132, 199, 0.45);
    background-color: rgba(2, 132, 199, 0.08);
}

.op-admin-chip {
    position: absolute;
    top: -8px;
    left: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 1px 5px;
    border-radius: 3px;
    z-index: 3;
    pointer-events: none;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.op-season-select:hover,
.op-season-select:focus {
    border-color: var(--op-primary);
    box-shadow: 0 0 0 2px var(--op-primary-glow);
}

.op-select-chevron {
    position: absolute;
    right: 10px;
    width: 13px;
    height: 13px;
    color: var(--op-text-muted);
    pointer-events: none;
}

.op-episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.op-episode-card {
    display: flex;
    align-items: center;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    padding: 8px 10px 8px 8px;
    gap: 10px;
    transition: var(--op-transition);
}

.op-episode-card:hover {
    background-color: var(--op-bg-card-hover);
    border-color: var(--op-primary);
    transform: translateY(-2px);
    box-shadow: var(--op-shadow-md);
}

.op-ep-thumb-wrap {
    position: relative;
    width: 96px;
    height: 56px;
    border-radius: var(--op-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #030610;
}

.op-ep-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.op-episode-card:hover .op-ep-thumb {
    transform: scale(1.05);
}

.op-ep-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--op-transition);
}

.op-episode-card:hover .op-ep-hover-overlay {
    opacity: 1;
}

.op-overlay-play {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.op-ep-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.op-ep-number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--op-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

.op-ep-info {
    flex: 1;
    min-width: 0;
}

.op-ep-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--op-text-main);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.op-ep-duration {
    font-size: 11.5px;
    color: var(--op-text-dim);
}

.op-ep-action {
    flex-shrink: 0;
}

.op-ep-play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--op-radius-full);
    border: 1.5px solid var(--op-border);
    color: var(--op-text-muted);
    transition: var(--op-transition);
}

.op-ep-play-circle svg {
    width: 11px;
    height: 11px;
    margin-left: 2px;
}

.op-episode-card:hover .op-ep-play-circle {
    border-color: var(--op-primary);
    background-color: var(--op-primary);
    color: #ffffff;
}

/* ==========================================================================
   6B. 6 DISTINCT EPISODE GRID LAYOUT STYLES
   ========================================================================== */

/* Grid Container Variants */
.op-episodes-grid.op-grid-style-cards-wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.op-episodes-grid.op-grid-style-anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.op-episodes-grid.op-grid-style-compact-list {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 8px;
}

.op-episodes-grid.op-grid-style-netflix-cinematic {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.op-episodes-grid.op-grid-style-number-buttons {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 8px;
}

.op-episodes-grid.op-grid-style-banner-cards {
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 14px;
}

/* --- Style 2: AniWatch / Zoro Poster Grid --- */
.op-style-anime-grid {
    display: flex;
    flex-direction: column;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--op-transition);
}

.op-style-anime-grid:hover {
    border-color: var(--op-primary);
    transform: translateY(-4px);
    box-shadow: var(--op-shadow-lg);
}

.op-anime-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #030610;
}

.op-anime-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.op-style-anime-grid:hover .op-anime-img {
    transform: scale(1.06);
}

.op-anime-top-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.op-pill-ep {
    background-color: var(--op-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.op-pill-subdub {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.op-anime-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    background: rgba(2, 132, 199, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.op-anime-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.op-style-anime-grid:hover .op-anime-play-btn {
    opacity: 1;
    transform: scale(1);
}

.op-anime-meta-box {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.op-anime-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--op-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin: 0;
}

.op-anime-subinfo {
    font-size: 11.5px;
    color: var(--op-text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Style 3: Compact Slim List (GogoAnime) --- */
.op-style-compact-list {
    display: flex;
    align-items: center;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    padding: 10px 14px;
    gap: 12px;
    text-decoration: none;
    transition: var(--op-transition);
}

.op-style-compact-list:hover {
    background-color: var(--op-bg-card-hover);
    border-color: var(--op-primary);
    transform: translateX(3px);
}

.op-list-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 800;
    background: var(--op-primary);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.op-list-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--op-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-list-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.op-list-pill {
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--op-text-muted);
    padding: 2px 7px;
    border-radius: 4px;
}

.op-list-time {
    font-size: 12px;
    color: var(--op-text-dim);
}

.op-list-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--op-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.op-list-arrow svg {
    width: 14px;
    height: 14px;
}

.op-style-compact-list:hover .op-list-arrow {
    transform: translateX(3px);
    color: var(--op-primary);
}

/* --- Style 4: Netflix / Crunchyroll Cinematic --- */
.op-style-netflix-cinematic {
    display: flex;
    flex-direction: column;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: var(--op-transition);
}

.op-style-netflix-cinematic:hover {
    border-color: var(--op-primary);
    transform: translateY(-4px);
    box-shadow: var(--op-shadow-lg);
}

.op-net-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #030610;
}

.op-net-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.op-style-netflix-cinematic:hover .op-net-img {
    transform: scale(1.05);
}

.op-net-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}

.op-net-duration {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.op-net-hover-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.25s ease;
    z-index: 3;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.55);
}

.op-net-hover-play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.op-style-netflix-cinematic:hover .op-net-hover-play {
    opacity: 1;
    transform: scale(1);
}

.op-net-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.op-net-num-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
}

.op-net-ep-tag {
    color: var(--op-primary);
    font-weight: 700;
}

.op-net-subtag {
    color: var(--op-text-dim);
}

.op-net-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--op-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* --- Style 5: Binge Quick Number Buttons --- */
.op-style-number-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--op-text-main);
    transition: var(--op-transition);
}

.op-style-number-buttons:hover {
    background-color: var(--op-primary);
    border-color: var(--op-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.op-num-val {
    pointer-events: none;
}

/* --- Style 6: Detailed Showcase Banner Cards --- */
.op-style-banner-cards {
    display: flex;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    transition: var(--op-transition);
}

.op-style-banner-cards:hover {
    border-color: var(--op-primary);
    transform: translateY(-2px);
    box-shadow: var(--op-shadow-md);
}

.op-banner-thumb-link {
    position: relative;
    width: 170px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #030610;
    display: block;
}

.op-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.op-banner-thumb-link:hover .op-banner-img {
    transform: scale(1.06);
}

.op-banner-hover-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: var(--op-transition);
}

.op-banner-hover-play svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.op-banner-thumb-link:hover .op-banner-hover-play {
    opacity: 1;
}

.op-banner-content {
    padding: 14px 18px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.op-banner-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.op-banner-num-pill {
    font-size: 10.5px;
    font-weight: 800;
    background: var(--op-primary);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
}

.op-banner-dur {
    font-size: 11.5px;
    color: var(--op-text-dim);
}

.op-banner-hd {
    font-size: 10.5px;
    font-weight: 700;
    color: #38bdf8;
}

.op-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--op-text-main);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.op-banner-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.op-banner-title a:hover {
    color: var(--op-primary);
}

.op-banner-desc {
    font-size: 12px;
    color: var(--op-text-muted);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.op-banner-action {
    margin-top: auto;
}

.op-banner-btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(2, 132, 199, 0.12);
    color: var(--op-primary);
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--op-transition);
}

.op-banner-btn-watch svg {
    width: 12px;
    height: 12px;
}

.op-banner-btn-watch:hover {
    background: var(--op-primary);
    color: #ffffff;
    border-color: var(--op-primary);
}

/* ==========================================================================
   6C. HOMEPAGE EPISODE PAGINATION (Straw Hat Dark Theme)
   ========================================================================== */
.op-pagination-container {
    margin-top: 32px;
}

.op-pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.op-pagination-info {
    font-size: 13px;
    color: var(--op-text-dim);
}

.op-pagination-info strong {
    color: var(--op-text-main);
    font-weight: 700;
}

.op-pagination-pages {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.op-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    color: var(--op-text-main);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--op-transition);
    user-select: none;
    cursor: pointer;
}

.op-page-btn svg {
    width: 15px;
    height: 15px;
}

.op-page-btn:hover {
    background-color: var(--op-bg-card-hover);
    border-color: var(--op-primary);
    color: var(--op-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--op-shadow-sm);
}

.op-page-btn.is-active {
    background-color: var(--op-primary);
    border-color: var(--op-primary);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
    pointer-events: none;
    cursor: default;
}

.op-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: var(--op-text-dim);
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}


/* ==========================================================================
   7. RIGHT SIDEBAR (Screenshot 1)
   ========================================================================== */
.op-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: -65px;
    position: relative;
    z-index: 10;
}

.op-poster-box {
    border-radius: var(--op-radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    background-color: #070c18;
}

.op-poster-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 172 / 205;
    object-fit: cover;
    border-radius: 9px;
}

.op-series-info-card,
.op-about-anime-card {
    background-color: #07101e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--op-radius-md);
    padding: 13px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.op-card-title,
.op-about-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--op-text-main);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.op-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.op-info-table th {
    text-align: left;
    color: #64748b;
    font-weight: 500;
    padding: 3.5px 0;
    width: 38%;
}

.op-info-table td {
    color: #e2e8f0;
    padding: 3.5px 0;
    font-weight: 500;
}

.op-share-card {
    background-color: #07101e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--op-radius-md);
    padding: 12px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.op-share-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--op-text-main);
    margin-bottom: 8px;
}

.op-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.op-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--op-radius-full);
    background-color: #0d1b32;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    transition: var(--op-transition);
    cursor: pointer;
}

.op-share-btn svg {
    width: 14px;
    height: 14px;
}

.op-share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.op-share-fb:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.op-share-tw:hover {
    background-color: #000000;
    border-color: #38bdf8;
    color: #38bdf8;
}

.op-share-tg:hover {
    background-color: #24a1de;
    border-color: #24a1de;
}

.op-share-copy:hover {
    background-color: var(--op-primary);
    border-color: var(--op-primary);
}

.op-strawhat-banner-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #040a16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--op-radius-md);
    padding: 9px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.op-sh-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.op-skull-icon {
    width: 100%;
    height: 100%;
}

.op-sh-text p {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
    font-weight: 500;
}


/* ==========================================================================
   8. WATCH PAGE & VIDEO PLAYER (Screenshot 2)
   ========================================================================== */
.op-watch-page {
    padding: 16px 0 60px;
    flex: 1;
}

.op-breadcrumbs {
    margin-bottom: 16px;
}

.op-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: var(--op-text-muted);
    margin: 0;
    padding: 0;
}

.op-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--op-text-muted);
}

.op-breadcrumbs a:hover {
    color: var(--op-primary);
}

.op-crumb-home {
    width: 14px;
    height: 14px;
}

.op-crumb-sep {
    color: var(--op-text-dim);
    font-size: 11px;
}

.op-breadcrumbs li.is-active {
    color: #38bdf8;
    font-weight: 500;
}

.op-watch-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
}

.op-watch-main {
    min-width: 0;
}

.op-watch-header {
    display: flex;
    gap: 16px;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.op-watch-poster-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--op-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.op-watch-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-watch-meta-details {
    flex: 1;
    min-width: 0;
}

.op-watch-series-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--op-text-main);
    line-height: 1.2;
    margin-bottom: 3px;
}

.op-watch-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--op-text-muted);
    margin-bottom: 6px;
}

.op-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--op-accent-gold);
}

.op-star-rating svg {
    width: 13px;
    height: 13px;
}

.op-tag-sep {
    color: var(--op-border);
}

.op-watch-ep-sub {
    font-size: 12.5px;
    color: var(--op-text-dim);
    margin-bottom: 2px;
}

.op-watch-ep-sub .bullet {
    margin: 0 4px;
}

.op-watch-current-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.op-watch-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.op-badge-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--op-text-dim);
}

.op-badge-meta svg {
    width: 13px;
    height: 13px;
}

.op-badge-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.3;
}

.op-pill-blue {
    background-color: var(--op-primary);
    color: #ffffff;
}

.op-pill-gray {
    background-color: #334155;
    color: #cbd5e1;
}

.op-pill-green {
    background-color: #059669;
    color: #ffffff;
}

/* 16:9 Video Player Card */
.op-player-card {
    position: relative;
    background-color: #030712;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    box-shadow: var(--op-shadow-lg);
    margin-bottom: 16px;
}

.op-player-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.op-player-title-tag {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.op-player-quick-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.op-player-btn-icon {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--op-transition);
}

.op-player-btn-icon:hover {
    color: #38bdf8;
}

.op-player-btn-icon svg {
    width: 18px;
    height: 18px;
}

.op-player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.op-player-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.op-video-mock {
    position: relative;
    width: 100%;
    height: 100%;
}

.op-player-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-big-play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: var(--op-radius-full);
    background-color: rgba(2, 132, 199, 0.88);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(2, 132, 199, 0.6);
    transition: var(--op-transition);
}

.op-big-play-trigger:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--op-primary);
}

.op-big-play-trigger svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.op-player-controls-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #070d18;
    padding: 10px 16px;
    border-top: 1px solid var(--op-border);
}

.op-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--op-text-muted);
    transition: var(--op-transition);
}

.op-ctrl-btn:hover {
    color: #38bdf8;
}

.op-ctrl-btn svg {
    width: 16px;
    height: 16px;
}

.op-badge-cc {
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--op-border);
    padding: 2px 5px;
    border-radius: 3px;
}

.op-timeline-wrap {
    flex: 1;
    cursor: pointer;
    padding: 6px 0;
}

.op-timeline-bar {
    position: relative;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.op-timeline-progress {
    height: 100%;
    background-color: var(--op-primary);
    border-radius: 2px;
}

.op-timeline-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: var(--op-radius-full);
    background-color: #ffffff;
    box-shadow: 0 0 6px var(--op-primary);
}

.op-time-display {
    font-size: 12px;
    color: var(--op-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ==========================================================================
   Streaming Servers Bar (MegaPlay Sub / Dub Switcher)
   ========================================================================== */
.op-player-servers-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #070d18;
    border-top: 1px solid var(--op-border);
    padding: 10px 16px;
}

.op-server-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--op-text-muted);
}

.op-server-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.op-server-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f1c32;
    color: var(--op-text-main);
    border: 1px solid var(--op-border);
    border-radius: 6px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--op-transition);
}

.op-server-btn:hover {
    background: #182a4a;
    border-color: var(--op-primary);
    color: #ffffff;
}

.op-server-btn.is-active {
    background: var(--op-primary);
    border-color: var(--op-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.45);
}

.op-server-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.op-episode-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.op-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--op-radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: var(--op-transition);
}

.op-btn-outline {
    background-color: var(--op-bg-input);
    border: 1px solid var(--op-border);
    color: var(--op-text-main);
}

.op-btn-outline:hover {
    border-color: var(--op-primary);
    background-color: var(--op-bg-card-hover);
    color: #38bdf8;
}

.op-btn-disabled {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--op-text-dim);
    cursor: not-allowed;
}

.op-btn-pill svg {
    width: 14px;
    height: 14px;
}

.op-sub-tabs-container {
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
}

.op-sub-tabs-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--op-border);
    background-color: rgba(0, 0, 0, 0.2);
}

.op-sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--op-text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--op-transition);
}

.op-sub-tab:hover {
    color: var(--op-text-main);
}

.op-sub-tab.is-active {
    color: #38bdf8;
    border-bottom-color: var(--op-primary);
    background-color: rgba(2, 132, 199, 0.05);
}

.op-sub-tab svg {
    width: 15px;
    height: 15px;
}

.op-sub-tab-content {
    display: none;
    padding: 18px;
}

.op-sub-tab-content.is-active {
    display: block;
    animation: opFadeIn 0.22s ease-out;
}

.op-ep-info-body {
    display: flex;
    gap: 16px;
}

.op-ep-info-thumb {
    width: 110px;
    height: 68px;
    border-radius: var(--op-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.op-ep-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-ep-info-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--op-text-main);
    margin-bottom: 4px;
}

.op-ep-info-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--op-text-muted);
}

/* Watch Sidebar */
.op-watch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.op-sidebar-season-picker .op-select-wrap,
.op-sidebar-season-picker .op-season-select {
    width: 100%;
}

.op-sidebar-playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.op-sidebar-playlist::-webkit-scrollbar {
    width: 5px;
}

.op-sidebar-playlist::-webkit-scrollbar-thumb {
    background: var(--op-border);
    border-radius: 4px;
}

.op-sidebar-ep-card {
    display: flex;
    align-items: center;
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    padding: 7px 9px;
    gap: 9px;
    transition: var(--op-transition);
}

.op-sidebar-ep-card:hover {
    background-color: var(--op-bg-card-hover);
    border-color: rgba(2, 132, 199, 0.4);
}

.op-sidebar-ep-card.is-active {
    background: linear-gradient(90deg, #122442 0%, #0e1c33 100%);
    border-color: var(--op-primary);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.25);
}

.op-side-thumb-wrap {
    position: relative;
    width: 66px;
    height: 40px;
    border-radius: var(--op-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.op-side-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op-side-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--op-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    flex-shrink: 0;
}

.op-side-info {
    flex: 1;
    min-width: 0;
}

.op-side-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--op-text-main);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.op-side-meta {
    font-size: 11px;
    color: var(--op-text-dim);
}

.op-side-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--op-radius-full);
    border: 1px solid var(--op-border);
    color: var(--op-text-muted);
    transition: var(--op-transition);
}

.op-side-play-btn svg {
    width: 9px;
    height: 9px;
    margin-left: 1px;
}

.op-sidebar-ep-card:hover .op-side-play-btn,
.op-sidebar-ep-card.is-active .op-side-play-btn {
    background-color: var(--op-primary);
    border-color: var(--op-primary);
    color: #ffffff;
}

.op-about-logo-wrap {
    margin-bottom: 10px;
}

.op-about-logo {
    height: 30px;
    width: auto;
}


/* ==========================================================================
   9. FOOTER & TOAST
   ========================================================================== */
.op-footer {
    margin-top: auto;
    background-color: var(--op-bg-surface);
    border-top: 1px solid var(--op-border);
    padding: 36px 0 26px;
}

.op-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--op-border);
}

.op-footer-brand {
    max-width: 360px;
}

.op-footer-desc {
    font-size: 13px;
    color: var(--op-text-muted);
    line-height: 1.55;
    margin-top: 10px;
}

.op-footer-links-group {
    display: flex;
    gap: 50px;
}

.op-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--op-text-main);
    margin-bottom: 12px;
}

.op-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.op-footer-col a {
    font-size: 13px;
    color: var(--op-text-muted);
}

.op-footer-col a:hover {
    color: var(--op-primary);
}

.op-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    font-size: 12px;
    color: var(--op-text-dim);
}

.op-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--op-bg-surface);
    border-top: 1px solid var(--op-border);
    padding: 8px 12px;
    z-index: 999;
    justify-content: space-around;
}

.op-mob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--op-text-muted);
    font-size: 10.5px;
    font-weight: 500;
}

.op-mob-nav-btn svg {
    width: 19px;
    height: 19px;
}

.op-mob-nav-btn.is-active,
.op-mob-nav-btn:hover {
    color: var(--op-primary);
}

.op-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--op-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--op-radius-full);
    box-shadow: var(--op-shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--op-transition);
    pointer-events: none;
    z-index: 2000;
}

.op-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.op-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    border-radius: var(--op-radius-full);
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    color: var(--op-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--op-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--op-transition);
    z-index: 900;
}

.op-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.op-back-to-top:hover {
    background-color: var(--op-primary);
    border-color: var(--op-primary);
    color: #ffffff;
}

.op-back-to-top svg {
    width: 17px;
    height: 17px;
}


/* ==========================================================================
   10. KEYFRAME ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes opFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.op-overview-card {
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    padding: 22px;
}

.op-overview-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.op-overview-text {
    font-size: 13.5px;
    color: var(--op-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.op-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    border-top: 1px solid var(--op-border);
    padding-top: 18px;
}

.op-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-detail-item .label {
    font-size: 11.5px;
    color: var(--op-text-dim);
}

.op-detail-item .value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--op-text-main);
}

.op-related-header {
    margin-bottom: 16px;
}

.op-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.op-related-card {
    background-color: var(--op-bg-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.op-related-img {
    width: 85px;
    height: 105px;
    object-fit: cover;
    border-radius: var(--op-radius-sm);
    flex-shrink: 0;
}

.op-related-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.25;
}

.op-related-info .meta {
    font-size: 11px;
    color: var(--op-text-dim);
    margin-bottom: 5px;
}

.op-related-info p {
    font-size: 11.5px;
    color: var(--op-text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}


/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {

    .op-layout-grid,
    .op-watch-grid {
        grid-template-columns: 1fr;
    }

    .op-sidebar,
    .op-watch-sidebar {
        margin-top: 20px;
    }

    .op-hero-content {
        max-width: 65%;
    }
}

@media (max-width: 768px) {
    .op-desktop-nav {
        display: none;
    }

    .op-mobile-toggle {
        display: flex;
    }

    .op-search-input-wrap {
        width: 140px;
        padding: 5px 10px;
    }

    .op-search-input-wrap:focus-within {
        width: 170px;
    }

    .op-hero-card {
        flex-direction: column;
        min-height: auto;
    }

    .op-hero-banner-wrap {
        position: relative;
        width: 100%;
        height: 200px;
    }

    .op-hero-fade {
        width: 100%;
        height: 40%;
        top: auto;
        background: linear-gradient(to top, #0c1527 0%, rgba(12, 21, 39, 0) 100%);
    }

    .op-hero-content {
        max-width: 100%;
        padding: 22px 18px;
    }

    .op-hero-title {
        font-size: 26px;
    }

    .op-header-selectors {
        width: 100%;
        margin-top: 8px;
    }

    .op-header-selectors .op-select-wrap {
        flex: 1;
        min-width: 160px;
    }

    .op-header-selectors .op-season-select {
        width: 100%;
    }

    .op-episodes-grid,
    .op-episodes-grid.op-grid-style-cards-wide,
    .op-episodes-grid.op-grid-style-compact-list,
    .op-episodes-grid.op-grid-style-banner-cards {
        grid-template-columns: 1fr;
    }

    .op-footer-top {
        flex-direction: column;
    }

    .op-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-bottom: 60px;
    }

    .op-mobile-bottom-bar {
        display: flex;
    }

    .op-back-to-top {
        bottom: 74px;
    }
}

@media (max-width: 480px) {
    .op-header-inner {
        height: 56px;
    }

    .op-logo-img {
        height: 30px;
    }

    .op-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .op-btn {
        width: 100%;
    }

    .op-watch-header {
        flex-direction: column;
    }

    .op-watch-poster-wrap {
        width: 60px;
        height: 60px;
    }

    .op-player-controls-bar {
        padding: 8px 10px;
        gap: 8px;
    }

    .op-time-display {
        display: none;
    }

    .op-episodes-grid.op-grid-style-anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .op-episodes-grid.op-grid-style-netflix-cinematic {
        grid-template-columns: 1fr;
    }

    .op-banner-thumb-link {
        width: 120px;
    }

    .op-banner-desc {
        display: none;
    }

    .op-banner-content {
        padding: 10px 12px;
    }
}