:root {
            --hbomax-bg: #0f0f0f;
            --hbomax-surface: #1a1a1a;
            --hbomax-surface-hover: #252525;
            --hbomax-text: #ffffff;
            --hbomax-text-secondary: #a0a0a0;
            --hbomax-accent: #ffffff;
            --hbomax-badge-bg: #ffffff;
            --hbomax-badge-text: #000000;
            --hbomax-overlay: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
            --hbomax-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--hbomax-bg);
            color: var(--hbomax-text);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--hbomax-bg);
        }
        ::-webkit-scrollbar-thumb {
            background: #333;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #444;
        }

        /* ===== UTILITIES ===== */
        .hbomax-hidden {
            display: none !important;
        }

        .hbomax-fade-in {
            animation: hbomaxFadeIn 0.4s ease-out forwards;
        }

        @keyframes hbomaxFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hbomax-slide-in-right {
            animation: hbomaxSlideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes hbomaxSlideInRight {
            from { opacity: 0; transform: translateX(30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* ===== HEADER ===== */
        .hbomax-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 72px;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4vw;
            transition: var(--hbomax-transition);
            background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
        }

        .hbomax-header--scrolled {
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(12px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.5);
        }

        .hbomax-header__left {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .hbomax-logo {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -1px;
            color: var(--hbomax-text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .hbomax-logo img{
            width: 82px;
            margin-top: 10px;
        }

        @media(max-width:540px){
            .hbomax-logo img {
                width: 62px;
                margin-top: -1px;
                margin-left: -26px;
            }
        }

        .hbomax-logo__hbo {
            font-weight: 900;
            letter-spacing: 2px;
        }

        .hbomax-logo__max {
            font-weight: 300;
            opacity: 0.9;
        }

        .hbomax-nav {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .hbomax-nav__link {
            color: var(--hbomax-text);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            opacity: 0.85;
            transition: var(--hbomax-transition);
            position: relative;
            padding: 4px 0;
        }

        .hbomax-nav__link:hover,
        .hbomax-nav__link--active {
            opacity: 1;
        }

        .hbomax-nav__link--active::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--hbomax-text);
            border-radius: 2px;
        }

        .hbomax-header__right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .hbomax-header__icon-btn {
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: var(--hbomax-transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hbomax-header__icon-btn:hover {
            background: rgba(255,255,255,0.1);
        }

        .hbomax-header__icon-btn svg {
            width: 22px;
            height: 22px;
        }

        .hbomax-header__avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            background: transparent;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--hbomax-transition);
        }

        .hbomax-header__avatar:hover {
            border-color: rgba(255,255,255,0.3);
        }

        .hbomax-mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            padding: 8px;
        }

        /* ===== MOBILE MENU ===== */
        .hbomax-mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.95);
            z-index: 999;
            padding: 100px 24px 24px;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .hbomax-mobile-menu--open {
            transform: translateX(0);
        }

        .hbomax-mobile-menu__link {
            display: block;
            color: var(--hbomax-text);
            text-decoration: none;
            font-size: 20px;
            font-weight: 500;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        /* ===== HERO CAROUSEL ===== */
        .hbomax-hero {
            position: relative;
            width: 100%;
            height: 85vh;
            min-height: 600px;
            overflow: hidden;
        }

        .hbomax-hero__slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            display: flex;
            align-items: flex-end;
        }

        .hbomax-hero__slide--active {
            opacity: 1;
            z-index: 2;
        }

        .hbomax-hero__bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center top;
            z-index: 0;
        }

        .hbomax-hero__bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--hbomax-overlay);
        }

        .hbomax-hero__content {
            position: relative;
            z-index: 3;
            padding: 0 4vw 80px;
            max-width: 700px;
            width: 100%;
        }

        .hbomax-hero__brand {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .hbomax-hero__brand-logo {
            font-weight: 900;
            font-size: 14px;
        }

        .hbomax-hero__title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.1;
            letter-spacing: -0.5px;
        }

        .hbomax-hero__subtitle {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 16px;
            opacity: 0.9;
        }

        .hbomax-hero__meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 13px;
        }

        .hbomax-hero__rating {
            background: rgba(255,255,255,0.2);
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 12px;
        }

        .hbomax-hero__desc {
            font-size: 15px;
            line-height: 1.5;
            opacity: 0.85;
            margin-bottom: 24px;
            max-width: 560px;
        }

        .hbomax-hero__actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .hbomax-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--hbomax-transition);
            border: none;
            text-decoration: none;
        }

        .hbomax-btn--primary {
            background: var(--hbomax-text);
            color: #000;
        }

        .hbomax-btn--primary:hover {
            background: #e0e0e0;
            transform: scale(1.02);
        }

        .hbomax-btn--icon {
            width: 44px;
            height: 44px;
            padding: 0;
            background: rgba(255,255,255,0.15);
            color: var(--hbomax-text);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .hbomax-btn--icon:hover {
            background: rgba(255,255,255,0.25);
        }

        .hbomax-hero__nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            padding: 16px;
            opacity: 0.6;
            transition: var(--hbomax-transition);
        }

        .hbomax-hero__nav:hover {
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
        }

        .hbomax-hero__nav--prev { left: 10px; }
        .hbomax-hero__nav--next { right: 10px; }

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

        .hbomax-hero__dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            border: none;
            cursor: pointer;
            transition: var(--hbomax-transition);
            padding: 0;
        }

        .hbomax-hero__dot--active {
            background: var(--hbomax-text);
            transform: scale(1.2);
        }

        /* ===== CONTENT ROWS ===== */
        .hbomax-section {
            padding: 20px 0;
            position: relative;
        }

        @media(max-width:540px){
            .hbomax-section {
                padding: 0;
                position: relative;
            }
        }

        .hbomax-section__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4vw;
            margin-bottom: 16px;
        }

        .hbomax-section__title {
            font-size: 18px;
            font-weight: 600;
        }

        .hbomax-row {
            position: relative;
            padding: 0 4vw;
        }

        .hbomax-row__track {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 10px 0;
            scroll-snap-type: x mandatory;
            padding-bottom:100px !important;
        }

        @media(max-width:540px){
            .hbomax-row__track {
                padding-bottom: 32px !important;
            }
        }

        .hbomax-row__track::-webkit-scrollbar {
            display: none;
        }

        .hbomax-row__nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            background: rgba(0,0,0,0.6);
            border: none;
            color: var(--hbomax-text);
            width: 40px;
            height: 80px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--hbomax-transition);
            border-radius: 4px;
        }

        .hbomax-row:hover .hbomax-row__nav {
            opacity: 1;
        }

        .hbomax-row__nav--prev { left: 2vw; }
        .hbomax-row__nav--next { right: 2vw; }

        /* ===== CARDS ===== */
        .hbomax-card {
            flex: 0 0 auto;
            position: relative;
            cursor: pointer;
            transition: var(--hbomax-transition);
            scroll-snap-align: start;
        }

        .hbomax-card:hover {
            transform: scale(1.05);
            z-index: 10;
        }

        .hbomax-card__img {
            width: 100%;
            aspect-ratio: 2/3;
            object-fit: cover;
            border-radius: 4px;
            display: block;
        }

        .hbomax-card__badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: var(--hbomax-badge-bg);
            color: var(--hbomax-badge-text);
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 2;
        }

        .hbomax-card__menu {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            background: rgba(0,0,0,0.6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--hbomax-transition);
            cursor: pointer;
            border: none;
            color: var(--hbomax-text);
            padding: 0;
        }

        .hbomax-card:hover .hbomax-card__menu {
            opacity: 1;
        }

        .hbomax-card__progress {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 0 0 4px 4px;
            overflow: hidden;
        }

        .hbomax-card__progress-bar {
            height: 100%;
            background: var(--hbomax-accent);
            width: 0%;
        }

        /* Card sizes */
        .hbomax-card--portrait {
            width: calc((100vw - 8vw - 80px) / 7);
            min-width: 140px;
        }

        .hbomax-card--landscape {
            width: calc((100vw - 8vw - 48px) / 4);
            min-width: 280px;
            aspect-ratio: 16/9;
        }

        .hbomax-card--landscape .hbomax-card__img {
            aspect-ratio: 16/9;
        }

        .hbomax-card--continue {
            width: calc((100vw - 8vw - 80px) / 4);
            min-width: 240px;
        }

        .hbomax-card--continue .hbomax-card__img {
            aspect-ratio: 16/9;
        }

        /* ===== DETAIL PAGE ===== */
        .hbomax-detail {
            min-height: 100vh;
            padding-top: 0;
        }

        .hbomax-detail__hero {
            position: relative;
            height: 75vh;
            min-height: 500px;
            display: flex;
            align-items: flex-end;
        }

        .hbomax-detail__bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center 20%;
        }

        .hbomax-detail__bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, var(--hbomax-bg) 0%, rgba(15,15,15,0.6) 50%, rgba(15,15,15,0.3) 100%);
        }

        .hbomax-detail__content {
            position: relative;
            z-index: 2;
            padding: 0 4vw 40px;
            width: 100%;
            max-width: 900px;
        }

        .hbomax-detail__logo {
            font-size: 42px;
            font-weight: 900;
            margin-bottom: 16px;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .hbomax-detail__meta {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .hbomax-detail__rating {
            border: 1px solid rgba(255,255,255,0.4);
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 12px;
        }

        .hbomax-detail__actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .hbomax-detail__btn--watch {
            min-width: 280px;
            padding: 14px 32px;
            font-size: 15px;
        }

        .hbomax-detail__btn--list,
        .hbomax-detail__btn--rate {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            font-size: 11px;
            opacity: 0.8;
            transition: var(--hbomax-transition);
        }

        .hbomax-detail__btn--list:hover,
        .hbomax-detail__btn--rate:hover {
            opacity: 1;
        }

        .hbomax-detail__btn--list svg,
        .hbomax-detail__btn--rate svg {
            width: 24px;
            height: 24px;
        }

        .hbomax-detail__desc {
            font-size: 15px;
            line-height: 1.6;
            opacity: 0.85;
            margin-bottom: 8px;
            max-width: 600px;
        }

        .hbomax-detail__genres {
            font-size: 13px;
            opacity: 0.6;
            margin-bottom: 24px;
        }

        .hbomax-detail__tabs {
            display: flex;
            gap: 24px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 24px;
        }

        .hbomax-detail__tab {
            background: none;
            border: none;
            color: var(--hbomax-text);
            font-size: 14px;
            font-weight: 600;
            padding: 12px 0;
            cursor: pointer;
            opacity: 0.5;
            transition: var(--hbomax-transition);
            position: relative;
        }

        .hbomax-detail__tab--active {
            opacity: 1;
        }

        .hbomax-detail__tab--active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--hbomax-text);
        }

        .hbomax-detail__panel {
            display: none;
        }

        .hbomax-detail__panel--active {
            display: block;
            padding-bottom: 100px !important;
        }

        .hbomax-detail__info-grid {
            display: grid;
            gap: 16px;
            max-width: 600px;
        }

        .hbomax-detail__info-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .hbomax-detail__info-label {
            font-size: 12px;
            font-weight: 600;
            opacity: 0.6;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .hbomax-detail__info-value {
            font-size: 14px;
            opacity: 0.9;
            line-height: 1.5;
        }

        /* ===== SEARCH PAGE ===== */
        .hbomax-search {
            min-height: 100vh;
            padding-top: 100px;
            padding-bottom: 60px;
        }

        .hbomax-search__input-wrapper {
            padding: 0 4vw;
            margin-bottom: 32px;
        }

        .hbomax-search__input {
            width: 100%;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 16px 20px 16px 48px;
            color: var(--hbomax-text);
            font-size: 16px;
            font-family: inherit;
            outline: none;
            transition: var(--hbomax-transition);
        }

        .hbomax-search__input:focus {
            background: rgba(255,255,255,0.15);
            border-color: rgba(255,255,255,0.4);
        }

        .hbomax-search__input::placeholder {
            color: rgba(255,255,255,0.5);
        }

        .hbomax-search__section-title {
            padding: 0 4vw;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .hbomax-search__grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 16px;
            padding: 0 4vw;
        }

        /* ===== PLAYER ===== */
        .hbomax-player {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hbomax-player__video {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .hbomax-player__overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            display:none;
        }

        .hbomax-player:hover .hbomax-player__overlay {
            opacity: 1;
        }

        .hbomax-player__controls {
            position: absolute;
            display: none;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px 4vw 24px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        }

        .hbomax-player__progress {
            width: 100%;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            margin-bottom: 16px;
            cursor: pointer;
            position: relative;
        }

        .hbomax-player__progress-bar {
            height: 100%;
            width: 30%;
            background: var(--hbomax-accent);
            border-radius: 2px;
            position: relative;
        }

        .hbomax-player__progress-bar::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: var(--hbomax-text);
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .hbomax-player__progress:hover .hbomax-player__progress-bar::after {
            opacity: 1;
        }

        .hbomax-player__buttons {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .hbomax-player__left,
        .hbomax-player__right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .hbomax-player__btn {
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            padding: 8px;
            opacity: 0.9;
            transition: var(--hbomax-transition);
        }

        .hbomax-player__btn:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .hbomax-player__title {
            position: absolute;
            top: 24px;
            left: 4vw;
            font-size: 16px;
            font-weight: 600;
        }

        .hbomax-player__back {
            position: absolute;
            top: 32px;
            left: 0;
            background: none;
            border: none;
            color: var(--hbomax-text);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            opacity: 0.9;
            z-index: 10;
        }

        .hbomax-player__back:hover {
            opacity: 1;
        }

        /* ===== VIEW TRANSITIONS ===== */
        .hbomax-view {
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .hbomax-view--active {
            display: block;
            opacity: 1;
        }

        /* ===== FOOTER ===== */
        .hbomax-footer {
            padding: 40px 4vw;
            text-align: center;
            border-top: 1px solid rgba(255,255,255,0.05);
            margin-top: 40px;
        }

        .hbomax-footer__links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .hbomax-footer__link {
            color: var(--hbomax-text-secondary);
            text-decoration: none;
            font-size: 12px;
            transition: var(--hbomax-transition);
        }

        .hbomax-footer__link:hover {
            color: var(--hbomax-text);
        }

        .hbomax-footer__copy {
            font-size: 12px;
            color: var(--hbomax-text-secondary);
            opacity: 0.6;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1200px) {
            .hbomax-search__grid {
                grid-template-columns: repeat(5, 1fr);
            }
            .hbomax-card--portrait {
                width: calc((100vw - 8vw - 64px) / 5);
            }
        }

        @media (max-width: 992px) {
            .hbomax-nav {
                display: none;
            }
            .hbomax-mobile-menu-btn {
                display: block;
            }
            .hbomax-hero__title {
                font-size: 36px;
            }
            .hbomax-hero__subtitle {
                font-size: 20px;
            }
            .hbomax-search__grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .hbomax-card--portrait {
                width: calc((100vw - 8vw - 48px) / 4);
            }
        }

        @media (max-width: 768px) {
            .hbomax-hero {
                height: 70vh;
                min-height: 500px;
            }
            .hbomax-hero__title {
                font-size: 28px;
            }
            .hbomax-hero__subtitle {
                font-size: 16px;
            }
            .hbomax-hero__desc {
                font-size: 13px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .hbomax-section__title {
                font-size: 16px;
            }
            .hbomax-search__grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 12px;
            }
            .hbomax-card--portrait {
                width: calc((100vw - 8vw - 32px) / 3);
                min-width: 100px;
            }
            .hbomax-card--landscape {
                min-width: 220px;
            }
            .hbomax-detail__hero {
                height: 60vh;
            }
            .hbomax-detail__logo {
                font-size: 28px;
            }
            .hbomax-detail__btn--watch {
                min-width: 100%;
            }
            .hbomax-row__nav {
                display: none;
            }
            .hbomax-footer__links {
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .hbomax-header {
                height: 60px;
                padding: 0 16px;
            }
            .hbomax-logo {
                font-size: 20px;
            }
            .hbomax-hero__content {
                padding: 0 16px 60px;
            }
            .hbomax-row {
                padding: 0 16px;
            }
            .hbomax-section__header {
                padding: 0 16px;
            }
            .hbomax-search__grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .hbomax-card--portrait {
                width: calc((100vw - 32px - 12px) / 2);
            }
        }

        /* Touch device optimizations */
        @media (hover: none) {
            .hbomax-card__menu {
                opacity: 1;
            }
            .hbomax-row__nav {
                display: none;
            }
        }




        .hbomax-card--dummy {
            background-color: #1e2025; /* Cinza escuro no padrão HBO */
            border-radius: 6px;
            cursor: default;
            box-shadow: none;
        }
        .hbomax-card--dummy:hover {
            transform: none;
            outline: none;
        }

        .club-auth{
            position:relative;
            padding-top:50px;
            text-align:center;
        }

        .club-auth img{
            width:500px;
            max-width: 90%;
            position:relative;
            display:block;
            margin-left:auto;
            margin-right:auto;
            margin-bottom:30px;
        }

        .club-auth button,
        .club-auth button:hover,
        .club-auth button:active,
        .club-auth button:focus,
        .club-auth button:visited{
                position: relative;
                display: block;
                width: 300px;
                margin-left: auto;
                margin-right: auto;
                padding: 18px;
                border-radius: 8px;
                color: #333;
                background: #ff4d0d;
                font-weight: bold;
                border: none !important;
                font-size: 17px;
                margin-top: 50px;
                cursor:pointer;
        }

        .tik-modais-auth-form.active {
            display: block;
            background: #f2f2f2 !important;
        }
        .tik-modais-auth-footer a,
        .tik-modais-auth-forgot a{
            color:#000 !important;
        }



        /* Modais (Add e Remove List) */
        .hbomax-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s ease; backdrop-filter: blur(4px); }
        .hbomax-modal-overlay--active { opacity: 1; visibility: visible; }
        .hbomax-modal { background: #0f172a; border: 1px solid #1e293b; border-radius: 0.75rem; padding: 1.5rem; width: 90%; max-width: 400px; transform: scale(0.95); transition: 0.3s ease; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); }
        .hbomax-modal-overlay--active .hbomax-modal { transform: scale(1); }
        .hbomax-modal__header { margin-bottom: 1rem; color: #f8fafc; font-size: 1.25rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
        .hbomax-modal__close { background: transparent; border: none; color: #94a3b8; cursor: pointer; transition: color 0.2s; }
        .hbomax-modal__close:hover { color: #f8fafc; }
        .hbomax-modal__select, .hbomax-modal__input { width: 100%; padding: 0.75rem; background: #1e293b; border: 1px solid #334155; border-radius: 0.5rem; color: #f8fafc; margin-bottom: 1rem; font-size: 0.875rem; outline: none; transition: border-color 0.2s; }
        .hbomax-modal__select:focus, .hbomax-modal__input:focus { border-color: #38bdf8; }
        .hbomax-modal__footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }
        .hbomax-modal__btn { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: 0.2s; }
        .hbomax-modal__btn--cancel { background: transparent; color: #cbd5e1; border: 1px solid #334155; }
        .hbomax-modal__btn--cancel:hover { background: #1e293b; }
        .hbomax-modal__btn--save { background: #f8fafc; color: #0f172a; }
        .hbomax-modal__btn--save:hover { background: #e2e8f0; }
        .hbomax-modal__btn--danger { background: #ef4444; color: #fff; }
        .hbomax-modal__btn--danger:hover { background: #dc2626; }

        /* Toasts */
        .hbomax-toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
        .hbomax-toast { background: #1e293b; border: 1px solid #334155; color: #f8fafc; padding: 12px 20px; border-radius: 6px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5); font-size: 0.875rem; display: flex; align-items: center; gap: 8px; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .hbomax-toast--active { transform: translateX(0); }
        .hbomax-toast--success { border-left: 4px solid #10b981; }
        .hbomax-toast--error { border-left: 4px solid #ef4444; }



        /* 1. Restringe o player para não ser maior que a altura da tela */
        .plyr--video {
            max-height: 85vh; /* O player nunca ocupará mais que 85% da altura da tela */
            margin: 0 auto;
            background: #000;
            display: flex; /* Garante que o conteúdo fique centralizado */
            align-items: center;
        }

        /* 2. Garante que o vídeo dentro do Plyr respeite o container sem distorcer */
        .plyr--video video {
            object-fit: contain;
            max-height: 85vh;
        }

        /* 3. Opcional: Garante que os controles fiquem sempre por cima */
        .plyr--video .plyr__controls {
            z-index: 100;
        }

        /* Remove a limitação de 85vh quando o Plyr entra em modo tela cheia */
        .plyr.plyr--fullscreen-active,
        .plyr.plyr--fullscreen-active video {
            max-height: 100vh !important;
            height: 100% !important;
        }

        .plyr--video {
    max-height: 85vh;
    margin: 0 auto;
}

.plyr__video-wrapper {
    height: 100% !important;
}

.plyr--video video {
    height: 100% !important;
    max-height: 100%;
    object-fit: contain;
}

.plyr.plyr--fullscreen-active {
    max-height: 100vh !important;
}

/* Botão Próximo Episódio no Player (Plyr) */
.hbo-plyr-next-ep {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
    margin: 0 8px !important;
    line-height: 1.2 !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}
.hbo-plyr-next-ep:hover {
    background: rgba(255, 255, 255, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
}
.hbo-plyr-next-ep:active {
    transform: scale(0.96) !important;
}

/* Custom Grid para Labels e Categorias (6 desktop / 2.5 mobile) */
.custom-grid-view, .view-mode-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.view-mode-normal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.view-mode-normal .normal-width {
    width: calc((100vw - 8vw - 80px) / 7) !important;
    min-width: 140px !important;
}

@media (max-width: 768px) {
    .custom-grid-view, .view-mode-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
    }
    .custom-grid-view > div, .view-mode-grid > div {
        flex: 0 0 calc(40% - 12px); /* 2.5 itens no mobile */
    }
}


button.shad-btn.shad-btn-outline {
    background: transparent;
    font-weight: bold;
    padding: 8px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #747474;
    color: #f2f2f2 !important;
}

#labelsFilterContainer{
    padding-bottom: 16px;
}

/* =========================================
   CONTROLES DE VISUALIZAÇÃO (VIEWS)
========================================= */

/* MODO GRID (6 Colunas) */
.view-mode-grid {
    display: grid !important;
    grid-template-columns: repeat(9, 1fr);
    gap: 16px;
}
.view-mode-grid .hbomax-card {
    width: 100% !important; /* Preenche o espaço da coluna */
}

/* MODO NORMAL (Flexibilidade Responsiva) */
.view-mode-normal {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
}
.view-mode-normal .hbomax-card {
    width: calc((100vw - 8vw - 80px) / 9) !important;
    min-width: 140px !important;
}

/* MODO LISTA */
.view-mode-list {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

/* RESPONSIVO MOBILE */
@media (max-width: 768px) {
    .view-mode-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
    }
    .view-mode-grid .hbomax-card {
        flex: 0 0 calc(40% - 12px) !important;
        width: auto !important;
    }
    .view-mode-normal .hbomax-card {
        width: calc(33% - 10px) !important;
        min-width: 110px !important;
    }
}
/* EPISODIOS DA SERIE — grid com capas (5 colunas desktop / 1 coluna mobile) */
.hbomax-episodes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 10px 0;
}
.hbomax-episode-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hbomax-episode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.35);
}
.hbomax-episode-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.hbomax-episode-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hbomax-episode-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.hbomax-episode-card:hover .hbomax-episode-card__play { opacity: 1; }
.hbomax-episode-card__title {
    padding: 10px 12px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .hbomax-episodes-grid { grid-template-columns: 1fr; }
}

/* PLAYER — overlay de carregamento */
.hbomax-player__loading {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}
.hbomax-player__spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hboSpin 0.8s linear infinite;
}
@keyframes hboSpin {
    to { transform: rotate(360deg); }
}

/* PLAYER — menu de trilhas de audio (padrao visual Plyr) */
.hbo-audio-menu { position: relative; }
.hbo-audio-menu__popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
    min-width: 170px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 70;
}
.hbo-audio-menu__popup.aberto { display: block; }
.hbo-audio-menu__popup button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 10px;
    font-size: 14px;
    color: #4a5568;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}
.hbo-audio-menu__popup button:hover { background: #f1f5f9; }
.hbo-audio-menu__popup button::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    flex: none;
}
.hbo-audio-menu__popup button.ativo { font-weight: 600; color: #0f172a; }
.hbo-audio-menu__popup button.ativo::before { background: #0f172a; }

/* PLAYER — cor principal (#ff4d0d) */
.plyr {
    --plyr-color-main: #ff4d0d;
    --plyr-audio-control-color-hover: #0f172a;
}
.hbo-audio-menu__popup button.ativo::before { background: #ff4d0d; }

/* ELENCO — grid de pessoas no single */
.hbomax-cast-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 10px 0;
}
.hbomax-cast-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hbomax-cast-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
}
.hbomax-cast-card__foto {
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.08);
}
.hbomax-cast-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hbomax-cast-card__nome {
    padding: 10px 10px 2px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}
.hbomax-cast-card__papel {
    padding: 0 10px 12px;
    color: #94a3b8;
    font-size: 12px;
}
@media (max-width: 768px) {
    .hbomax-cast-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ELENCO — lista com fotos redondas + badge "+" */
.hbomax-cast-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    padding: 10px 0;
    max-width: 900px;
}
.hbomax-cast-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
.hbomax-cast-row__foto {
    position: relative;
    width: 64px;
    height: 64px;
    flex: none;
}
.hbomax-cast-row__foto img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    display: block;
}
.hbomax-cast-row__plus {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4d0d;
    color: #0f172a;
    font-size: 14px;
    padding-top: 1px;
    font-weight: 700;
    display: block;
    text-align: center;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #000000;
}
.hbomax-cast-row__nome { color: #ffffff; font-size: 15px; font-weight: 600; }
.hbomax-cast-row__papel { color: #94a3b8; font-size: 13px; margin-top: 2px; }
@media (max-width: 768px) {
    .hbomax-cast-list { grid-template-columns: 1fr; }
}

/* SIDEPANEL DO ATOR — filmografia */
.ator-side-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ator-side-backdrop.aberto { opacity: 1; visibility: visible; }
.ator-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 92vw;
    background: #0f141b;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}
.ator-side-panel.aberto { transform: translateX(0); }
.ator-side-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}
.ator-side-head__label {
    color: #ff4d0d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ator-side-head__nome {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}
.ator-side-fechar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    flex: none;
}
.ator-side-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}
.ator-side-item img {
    width: 52px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    flex: none;
    background: rgba(255, 255, 255, 0.08);
}
.ator-side-item__titulo { color: #ffffff; font-size: 14px; font-weight: 600; }
.ator-side-item__meta { color: #94a3b8; font-size: 12px; margin-top: 2px; }

/* HERO — modo video unico */
.hbomax-hero__bg--video {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hbomax-hero__bg--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TOP 10 — ranking (estilo pinedrama) */
.hbo-top10-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0 16px;
    scrollbar-width: none;
}
.hbo-top10-strip::-webkit-scrollbar { display: none; }
.hbo-top10-item {
    display: flex;
    align-items: flex-end;
    flex: none;
    cursor: pointer;
}
.hbo-top10-rank {
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 130px;
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    paint-order: stroke fill;
    margin-right: -22px;
    z-index: 0;
    user-select: none;
}
.hbo-top10-poster {
    position: relative;
    z-index: 1;
    display: block;
    width: 130px;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease;
}
.hbo-top10-item:hover .hbo-top10-poster { transform: translateY(-4px); }
.hbo-top10-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hbo-top10-views {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
}

/* MINI DRAMAS — strip e cards */
.hbo-md-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 4vw;
}
.hbo-md-vertodos {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 9999px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.hbo-md-vertodos:hover { background: rgba(255, 255, 255, 0.1); }
.hbo-md-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4vw 16px;
    scrollbar-width: none;
}
.hbo-md-strip::-webkit-scrollbar { display: none; }
.hbo-md-card {
    position: relative;
    flex: none;
    width: 150px;
    aspect-ratio: 9/16;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hbo-md-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
}
.hbo-md-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hbo-md-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.hbo-md-card:hover .hbo-md-card__play { opacity: 1; }
.hbo-md-card__titulo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.75);
}

/* MINI DRAMAS — overlay "Ver todos" / episódios */
.hbo-md-grid-overlay {
    position: fixed;
    inset: 0;
    background: #0b0f14;
    z-index: 9997;
    overflow-y: auto;
    display: none;
}
.hbo-md-grid-overlay.aberto { display: block; }
.hbo-md-gridbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 4vw;
    position: sticky;
    top: 0;
    background: #0b0f14;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hbo-md-gridbar h2 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}
.hbo-md-iconbtn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
}
.hbo-md-iconbtn:hover { background: rgba(255, 255, 255, 0.2); }
.hbo-md-iconbtn.is-disabled { opacity: 0.35; pointer-events: none; }
.hbo-md-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 18px 4vw 40px;
}
.hbo-md-grid .hbo-md-card { width: auto; }

/* MINI DRAMAS — player estilo TikTok */
.hbo-md-player {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: none;
}
.hbo-md-player.aberto { display: block; }
.hbo-md-player__stage {
    position: absolute;
    inset: 0;
}
.hbo-md-player__stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}
.hbo-md-player__ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3;
}
.hbo-md-player__ui.oculto { opacity: 0; visibility: hidden; }
.hbo-md-player__top {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}
.hbo-md-player__titulo { color: #ffffff; font-size: 17px; font-weight: 700; }
.hbo-md-player__ep { color: rgba(255, 255, 255, 0.7); font-size: 13px; margin-top: 2px; }
.hbo-md-player__desc {
    color: #e2e8f0;
    font-size: 14px;
    max-width: 70%;
    pointer-events: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.hbo-md-actions {
    position: absolute;
    right: 14px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 4;
}
.hbo-md-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.hbo-md-action:active { transform: scale(1.2); }
.hbo-md-action.ativo { color: #ffffff; }
.hbo-md-action.ativo svg { fill: #ffffff; }
/* Track/slides da transição vertical (estilo TikTok) */
.hbo-md-track {
    height: 100%;
}
.hbo-md-slide {
    height: 100dvh;
    background-size: cover;
    background-position: center;
    background-color: #000000;
}
.hbo-md-slide video {
    width: 100%;
    height: 100dvh;
    object-fit: contain;
    background: #000000;
    display: block;
}
/* Loading do player TikTok */
.hbo-md-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}
.hbo-md-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hboSpin 0.8s linear infinite;
}
.hbo-md-nav {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4;
}
@media (max-width: 768px) {
    .hbo-md-nav { display: none; }
    .hbo-md-player__desc { max-width: 100%; padding-right: 70px; }
}

/* MINI DRAMAS — página da série (cabeçalho) e grade de episódios */
.hbo-md-serie-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 4vw 8px;
}
.hbo-md-serie-head__capa {
    width: 110px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: none;
}
.hbo-md-serie-head__titulo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}
.hbo-md-serie-head__meta {
    color: #ff4d0d;
    font-size: 13px;
    font-weight: 600;
    margin: 6px 0 8px;
}
.hbo-md-serie-head__desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}
.hbo-md-grid--eps {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.hbo-md-ep {
    cursor: pointer;
}
.hbo-md-ep__thumb {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.hbo-md-ep:hover .hbo-md-ep__thumb {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}
.hbo-md-ep__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hbo-md-ep__num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
}
.hbo-md-ep__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.hbo-md-ep:hover .hbo-md-ep__play { opacity: 1; }
.hbo-md-ep__titulo {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 2px 0;
}
@media (max-width: 768px) {
    .hbo-md-serie-head { flex-direction: row; }
    .hbo-md-serie-head__capa { width: 84px; }
    .hbo-md-grid--eps { grid-template-columns: 1fr 1fr; }
}

/* TEMPORADAS — combo acima dos episódios (só em séries com temporadas) */
.hbomax-episodes-grid[hidden] { display: none; }
.vca-temporadas-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 4px;
}
.vca-temporadas-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vca-temporada-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 220px;
    max-width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.vca-temporada-select:hover,
.vca-temporada-select:focus { border-color: #ff4d0d; outline: none; }
.vca-temporada-select option { background: #161a23; color: #ffffff; }
@media (max-width: 768px) {
    .vca-temporadas-bar { flex-direction: column; align-items: stretch; gap: 6px; }
    .vca-temporada-select { min-width: 0; width: 100%; }
}

/* ==========================================================================
   JOGOS — cards na home logada + launcher em tela cheia (includes/vca-jogos.php)
   ========================================================================== */
.vca-jogo-card {
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    font: inherit;
    text-align: left;
    aspect-ratio: 2 / 3;
}
.vca-jogo-card .hbomax-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vca-jogo-card:focus-visible { outline: 2px solid #ff4d0d; outline-offset: 2px; }
.vca-jogo-card__sem-capa {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    background: #1e2230;
}
.vca-jogo-card__jogar {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ff4d0d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Launcher: janela com margem sobre fundo escurecido (a margem respeita
   as áreas seguras do celular: notch e barra inferior do iPhone) */
body.vca-jogo-aberto { overflow: hidden; }
.vca-jogo-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    padding: 32px;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    background: rgba(5, 7, 12, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.vca-jogo-overlay[hidden] { display: none; }
.vca-jogo-janela {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.vca-jogo-barra {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #0d0f15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vca-jogo-titulo {
    min-width: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vca-jogo-acoes { display: flex; gap: 8px; flex: none; }
.vca-jogo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.vca-jogo-btn:hover,
.vca-jogo-btn:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); outline: none; }
.vca-jogo-btn--fechar { background: #ff4d0d; border-color: #ff4d0d; }
.vca-jogo-btn--fechar:hover,
.vca-jogo-btn--fechar:focus-visible { background: #ec4407; border-color: #ec4407; }
.vca-jogo-palco {
    position: relative;
    flex: 1;
    min-height: 0;
}
.vca-jogo-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
.vca-jogo-carregando {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
@media (max-width: 900px) {
    .vca-jogo-overlay {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}
@media (max-width: 600px) {
    .vca-jogo-overlay {
        padding: 10px;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
    .vca-jogo-janela { border-radius: 12px; }
    .vca-jogo-barra { padding: 6px 8px 6px 14px; }
    .vca-jogo-titulo { font-size: 14px; }
    .vca-jogo-btn { padding: 0; width: 44px; }
    .vca-jogo-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .vca-jogo-card__jogar { left: 6px; bottom: 6px; padding: 4px 8px; font-size: 11px; }
}
