/* Entertainment home */
.entertainment-page {
    background: #0f1012;
}

.entertainment-hero {
    position: relative;
    display: flex;
    min-height: min(74svh, 760px);
    align-items: flex-end;
    overflow: hidden;
    background: #17181b;
}

.entertainment-hero-image,
.entertainment-hero-overlay {
    position: absolute;
    inset: 0;
}

.entertainment-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.82);
    transform: scale(1.015);
}

.entertainment-hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.62) 48%, rgba(8, 9, 11, 0.08) 82%),
        linear-gradient(0deg, #0f1012 0%, rgba(15, 16, 18, 0.03) 46%);
}

.entertainment-hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 76%);
    padding: 76px clamp(30px, 5vw, 78px);
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7);
}

.entertainment-hero h1 {
    margin: 16px 0 20px;
    font-size: clamp(3.4rem, 6.8vw, 7rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: 0;
}

.entertainment-hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: #d0d1d5;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.entertainment-destinations,
.entertainment-latest {
    padding: 76px clamp(24px, 4vw, 64px) 84px;
}

.entertainment-destinations {
    background: #18191d;
}

.entertainment-section-heading {
    max-width: 1480px;
    margin: 0 auto 34px;
}

.entertainment-section-heading h2 {
    max-width: 830px;
    margin: 10px 0 0;
    font-size: clamp(2.25rem, 4.6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.entertainment-destination-grid {
    display: grid;
    max-width: 1480px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 0 auto;
}

.entertainment-destination-card {
    position: relative;
    display: block;
    min-height: 470px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: #232429;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.entertainment-destination-card:hover,
.entertainment-destination-card:focus {
    color: #fff;
}

.entertainment-destination-card > img,
.entertainment-destination-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.entertainment-destination-card > img {
    object-fit: cover;
    transition: filter 240ms ease, transform 240ms ease;
}

.entertainment-destination-overlay {
    background:
        linear-gradient(0deg, rgba(9, 10, 12, 0.98) 0%, rgba(9, 10, 12, 0.66) 48%, rgba(9, 10, 12, 0.04) 82%);
}

.entertainment-destination-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: block;
    padding: 30px;
}

.entertainment-destination-content small,
.entertainment-destination-content strong,
.entertainment-destination-content > span {
    display: block;
}

.entertainment-destination-content small {
    margin-bottom: 11px;
    color: var(--videos-accent);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.entertainment-destination-content strong {
    padding-right: 54px;
    font-size: clamp(1.45rem, 2.6vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.entertainment-destination-content > span {
    max-width: 390px;
    margin-top: 13px;
    color: #aaabb0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    line-height: 1.55;
}

.entertainment-destination-content b {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #111;
    font-size: 1.2rem;
    border-radius: 50%;
    background: var(--videos-accent);
    transition: transform 180ms ease;
}

.entertainment-destination-card:hover > img,
.entertainment-destination-card:focus > img {
    filter: brightness(0.82);
    transform: scale(1.035);
}

.entertainment-destination-card:hover b,
.entertainment-destination-card:focus b {
    transform: translateX(4px);
}

/* Games */
.games-page {
    background: #101114;
}

.games-hero,
.game-detail-hero {
    position: relative;
    display: flex;
    min-height: min(68svh, 700px);
    align-items: flex-end;
    overflow: hidden;
    background: #18191d;
}

.games-hero-image,
.games-hero-overlay,
.game-detail-hero-image,
.game-detail-hero-overlay {
    position: absolute;
    inset: 0;
}

.games-hero-image,
.game-detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88);
}

.games-hero-overlay,
.game-detail-hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.66) 50%, rgba(8, 9, 11, 0.12) 86%),
        linear-gradient(0deg, #101114 0%, rgba(16, 17, 20, 0.05) 48%);
}

.games-hero-content,
.game-detail-hero-content {
    position: relative;
    z-index: 1;
    width: min(790px, 82%);
    padding: 76px clamp(30px, 5vw, 78px);
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.7);
}

.game-detail-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1480px, calc(100% - 48px));
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
    padding: 76px 0;
    margin: 0 auto;
}

.game-detail-hero-layout.has-trailer {
    grid-template-columns: minmax(160px, 230px) minmax(300px, 0.85fr) minmax(420px, 0.95fr);
    align-items: center;
    gap: clamp(22px, 3vw, 38px);
}

.game-detail-hero-layout .game-detail-hero-content {
    min-width: 0;
    width: 100%;
    padding: 0;
}

.game-detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42);
}

.games-hero h1,
.game-detail-hero h1 {
    margin: 16px 0 20px;
    font-size: clamp(3.15rem, 6.2vw, 6.3rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0;
}

.game-detail-hero-layout.has-trailer h1 {
    font-size: clamp(2.45rem, 4.6vw, 5rem);
}

.games-hero p,
.game-detail-hero p {
    max-width: 660px;
    color: #d1d2d6;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.game-detail-hero-layout.has-trailer p {
    max-width: 560px;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.6;
}

.games-library,
.game-linked-videos {
    padding: 76px clamp(24px, 4vw, 64px) 84px;
}

.game-trailer-feature {
    align-self: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(14, 15, 18, 0.58);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
}

.game-trailer-copy {
    padding: 14px 4px 2px;
}

.game-trailer-copy span {
    display: block;
    margin-bottom: 6px;
    color: var(--videos-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-trailer-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    font-weight: 700;
    line-height: 1.25;
}

.game-youtube-trailer {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

@media (max-width: 1399.98px) {
    .game-detail-hero-layout.has-trailer {
        grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    }

    .game-detail-hero-layout.has-trailer .game-trailer-feature {
        grid-column: 1 / -1;
        width: min(900px, 100%);
    }
}

.games-grid {
    display: grid;
    width: min(1480px, 100%);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px 22px;
    margin: 0 auto;
}

.game-card {
    display: grid;
    min-width: 0;
    gap: 13px;
    align-content: start;
    color: #fff;
    text-decoration: none;
}

.game-card:hover,
.game-card:focus {
    color: #fff;
}

.game-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #202126;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    transition: filter 240ms ease, transform 240ms ease;
}

.game-card-overlay {
    display: none;
}

.game-card-copy {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.game-card-copy small {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 6px;
    background: var(--videos-accent);
}

.game-card-copy strong {
    font-size: 1rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.game-card-copy em {
    min-width: 0;
    color: #f1c84b;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.game-card-meta {
    display: flex;
    min-height: 25px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-card:hover img,
.game-card:focus img {
    filter: brightness(0.84);
    transform: scale(1.035);
}

.entertainment-latest {
    background: #0f1012;
}

.entertainment-latest-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.entertainment-latest-heading h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.entertainment-latest-heading > a {
    flex: 0 0 auto;
    color: #d4d5d9;
    font-size: 0.76rem;
    text-decoration: none;
}

.entertainment-latest-heading > a:hover {
    color: var(--videos-accent);
}

.entertainment-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watch-grid {
    display: grid;
    width: min(1550px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    gap: clamp(28px, 3vw, 48px);
    margin: 0 auto;
    padding: 34px clamp(24px, 4vw, 64px) 80px;
}

.watch-primary {
    min-width: 0;
}

.watch-back-link {
    display: inline-flex;
    gap: 9px;
    margin: 0 0 20px;
    color: #a9aab0;
    font-size: 0.78rem;
    text-decoration: none;
}

.watch-back-link:hover {
    color: #fff;
}

.watch-player-shell {
    position: relative;
}

.custom-video-shell {
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.custom-video-shell:fullscreen,
.custom-video-shell:-webkit-full-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: #000;
}

.watch-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.custom-video-shell .watch-player {
    border-radius: 0;
}

.custom-video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.custom-video-poster[hidden] {
    display: none;
}

.custom-video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-video-shell:fullscreen .watch-player,
.custom-video-shell:-webkit-full-screen .watch-player {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.custom-video-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    pointer-events: none;
}

.custom-video-shell:fullscreen .custom-video-ui,
.custom-video-shell:-webkit-full-screen .custom-video-ui {
    position: fixed;
    inset: 0;
}

.custom-video-disabled .custom-video-ui {
    display: none;
}

.custom-video-cursor-hidden,
.custom-video-cursor-hidden .watch-player,
.custom-video-cursor-hidden .custom-video-ui {
    cursor: none;
}

.custom-video-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(62px, 8vw, 86px);
    height: clamp(62px, 8vw, 86px);
    place-items: center;
    color: #111;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.custom-video-center-play[hidden] {
    display: none;
}

.custom-video-center-play svg {
    width: 38%;
    height: 38%;
    margin-left: 4px;
    fill: currentColor;
}

.custom-video-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px 18px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.custom-video-shell:fullscreen .custom-video-controls,
.custom-video-shell:-webkit-full-screen .custom-video-controls {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
}

.custom-video-controls-visible .custom-video-controls,
.custom-video-shell:focus-within .custom-video-controls,
.custom-video-ended .custom-video-controls {
    opacity: 1;
    transform: translateY(0);
}

.custom-video-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-video-button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
}

.custom-video-button:hover,
.custom-video-button:focus-visible,
.custom-video-replay:hover,
.custom-video-replay:focus-visible {
    color: #111;
    background: var(--videos-accent);
}

.custom-video-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.custom-video-options {
    position: relative;
    flex: 0 0 auto;
}

.custom-video-options-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 190px;
    max-height: min(70vh, 430px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(12, 12, 14, 0.94);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
}

.custom-video-options-heading {
    display: block;
    padding: 8px 9px 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.custom-video-options-menu[hidden] {
    display: none;
}

.custom-video-toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 9px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    border-radius: 6px;
}

.custom-video-toggle-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-video-toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-video-toggle {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 auto;
    order: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.custom-video-toggle::after {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: translateY(-50%);
    transition: transform 0.16s ease;
}

.custom-video-toggle-option input:checked + .custom-video-toggle {
    border-color: var(--videos-accent);
    background: var(--videos-accent);
}

.custom-video-toggle-option input:checked + .custom-video-toggle::after {
    transform: translate(14px, -50%);
}

.custom-video-toggle-option input:focus-visible + .custom-video-toggle {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.custom-video-quality-panel,
.custom-video-subtitle-panel {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-video-quality-panel[hidden],
.custom-video-subtitle-panel[hidden] {
    display: none;
}

.custom-video-quality-list,
.custom-video-subtitle-list {
    display: grid;
    gap: 2px;
}

.custom-video-quality-option,
.custom-video-subtitle-option {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    padding: 8px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: start;
}

.custom-video-quality-option:hover,
.custom-video-quality-option:focus-visible,
.custom-video-subtitle-option:hover,
.custom-video-subtitle-option:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.custom-video-quality-option[aria-pressed="true"],
.custom-video-subtitle-option[aria-pressed="true"] {
    color: #111;
    background: #fff;
}

.custom-video-subtitle-option {
    gap: 14px;
}

.custom-video-subtitle-option[aria-pressed="true"]::after {
    flex: 0 0 auto;
    font-weight: 900;
    content: "\2713";
}

.custom-video-subtitles-overlay {
    position: absolute;
    right: 5%;
    bottom: 82px;
    left: 5%;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.28em;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.custom-video-subtitles-overlay[hidden] {
    display: none;
}

.custom-video-subtitle-cue {
    max-width: 100%;
    padding: 0.12em 0.38em;
    white-space: pre-line;
    overflow-wrap: anywhere;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.8);
}

.custom-video-shell video::cue {
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.3rem;
    line-height: 1.35;
    background: rgba(0, 0, 0, 0.78);
}

.custom-video-shell:fullscreen .custom-video-subtitles-overlay,
.custom-video-shell:-webkit-full-screen .custom-video-subtitles-overlay {
    bottom: max(94px, calc(80px + env(safe-area-inset-bottom)));
    font-size: 1.5rem;
}

@media (min-width: 1200px) {
    .custom-video-subtitles-overlay {
        font-size: 1.65rem;
    }

    .custom-video-shell:fullscreen .custom-video-subtitles-overlay,
    .custom-video-shell:-webkit-full-screen .custom-video-subtitles-overlay {
        font-size: 2rem;
    }
}

.custom-video-progress-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 18px;
    margin-bottom: 8px;
}

.custom-video-progress-shell::before,
.custom-video-buffered,
.custom-video-played {
    position: absolute;
    top: 7px;
    left: 0;
    height: 4px;
    border-radius: 999px;
    content: "";
    pointer-events: none;
}

.custom-video-progress-shell::before {
    right: 0;
    background: rgba(255, 255, 255, 0.22);
}

.custom-video-buffered {
    width: 0%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.48);
}

.custom-video-played {
    width: 0%;
    max-width: 100%;
    background: var(--videos-accent);
}

.custom-video-progress,
.custom-video-volume {
    min-width: 0;
    height: 4px;
    accent-color: var(--videos-accent);
    cursor: pointer;
}

.custom-video-progress {
    position: relative;
    display: block;
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    z-index: 1;
}

.custom-video-progress::-webkit-slider-runnable-track {
    height: 18px;
    background: transparent;
}

.custom-video-progress::-moz-range-track {
    height: 18px;
    background: transparent;
}

.custom-video-progress::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border: 0;
    border-radius: 50%;
    background: var(--videos-accent);
    -webkit-appearance: none;
}

.custom-video-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: var(--videos-accent);
}

.custom-video-volume {
    width: 86px;
}

.custom-video-time {
    flex: 1 1 auto;
    min-width: 90px;
    color: #f7f7f8;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.custom-video-live-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.custom-video-live-label span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-red, #f43f5e);
    box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.18);
}

.custom-video-end-screen {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(18px, 3vw, 30px);
    background: rgba(5, 5, 7, 0.88);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.custom-video-end-screen[hidden] {
    display: none;
}

.custom-video-end-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.custom-video-end-header strong {
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.custom-video-replay {
    padding: 8px 14px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.custom-video-end-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: auto;
}

.custom-video-end-card {
    display: block;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.custom-video-end-card .suggested-video-thumbnail {
    margin-bottom: 8px;
}

.custom-video-end-card .suggested-video-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.custom-video-end-card .suggested-video-copy p,
.custom-video-end-card .suggested-video-copy small,
.custom-video-end-card .video-card-badges {
    display: none;
}

.watch-player-error {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    color: #f3f3f5;
    text-align: center;
    border-radius: 12px;
    background: rgba(8, 8, 10, 0.9);
    backdrop-filter: blur(5px);
}

.watch-player-error[hidden] {
    display: none;
}

.watch-player-error-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #111;
    border-radius: 50%;
    background: var(--videos-accent);
}

.watch-player-error-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.watch-player-error strong {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.watch-player-error p {
    max-width: 460px;
    margin: 0;
    color: #b8b9be;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
}

.watch-player-error .btn {
    padding: 9px 18px;
    color: #111;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--videos-accent);
}

.watch-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-title-row h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.35vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.watch-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.watch-action-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #f3f3f5;
    font: inherit;
    font-size: 0.76rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: #25262a;
}

.watch-action-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: currentColor;
}

.watch-action-button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: #34353a;
}

.watch-action-button.active {
    color: #111;
    border-color: var(--videos-accent);
    background: var(--videos-accent);
}

.watch-action-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.watch-action-button.is-age-locked:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.watch-action-button.active:hover {
    color: #111;
    border-color: #ffd044;
    background: #ffd044;
}

.watch-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
}

.watch-channel-row img {
    width: 45px;
    height: 45px;
    /* padding: 6px; */
    object-fit: cover;
    border-radius: 50%;
    background: #25262a;
}

.watch-channel-row strong,
.watch-channel-row a,
.watch-channel-row span {
    display: block;
}

.watch-channel-row strong {
    font-size: 0.86rem;
}

.watch-channel-name {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.watch-channel-name:hover,
.watch-channel-name:focus-visible {
    color: var(--videos-accent);
}

.watch-channel-name.is-disabled {
    pointer-events: none;
}

.watch-channel-row span,
.watch-channel-row small {
    color: #96979d;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
}

.watch-channel-row small {
    margin-left: auto;
    color: var(--videos-accent);
}

.watch-description {
    padding: 20px;
    color: #cacbd0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: #191a1d;
}

.watch-published-date {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 10px;
    padding: 0;
    color: var(--videos-accent);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.watch-published-date:hover,
.watch-published-date:focus-visible {
    color: #fff;
}

.watch-published-date[hidden] {
    display: none;
}

.watch-game-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.82rem;
}

.watch-game-links[hidden] {
    display: none;
}

.watch-game-links > span:first-child {
    color: #85868d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.watch-game-links > span:last-child {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
}

.watch-game-links a {
    color: #111;
    padding: 5px 9px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    background: var(--videos-accent);
}

.watch-game-links a:hover,
.watch-game-links a:focus-visible {
    color: #111;
    background: #ffd044;
}

.watch-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 13px;
}

.watch-status-badges[hidden] {
    display: none;
}

.watch-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 6px 10px;
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
}

.watch-status-badge.is-public,
.watch-status-badge.is-all-ages {
    color: #9ce7b9;
    border: 1px solid rgba(71, 217, 135, 0.22);
    background: rgba(71, 217, 135, 0.08);
}

.watch-status-badge.is-unlisted {
    color: #ffd76d;
    border: 1px solid rgba(255, 193, 7, 0.24);
    background: rgba(255, 193, 7, 0.08);
}

.watch-status-badge.is-private {
    color: #c3c4c9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.watch-status-badge.is-age-restricted {
    color: #ff9ba5;
    border: 1px solid rgba(241, 109, 121, 0.28);
    background: rgba(241, 109, 121, 0.1);
}

.watch-description p {
    margin: 0;
    white-space: pre-line;
}

.watch-comments {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-comments-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.watch-comments-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
}

.watch-comments-heading h2 span {
    color: #888990;
    font-size: 0.85em;
}

.watch-comments-heading > small,
.watch-comment-form-footer small,
.watch-comment-form-footer > span {
    color: #818289;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
}

.watch-engagement-status {
    min-height: 21px;
    margin: 0 0 12px;
    color: #72d99b;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
}

.watch-engagement-status.error {
    color: #ff8795;
}

.watch-comment-login,
.watch-comment-limit {
    margin: 0 0 24px;
    padding: 16px 18px;
    color: #b6b7bc;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: #191a1d;
}

.watch-comment-login a {
    color: var(--videos-accent);
}

.watch-comment-form {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: #191a1d;
}

.watch-comment-form label {
    display: block;
    margin-bottom: 9px;
    color: #d1d2d6;
    font-size: 0.72rem;
    font-weight: 700;
}

.watch-comment-form textarea {
    display: block;
    width: 100%;
    min-height: 76px;
    padding: 12px 14px;
    resize: vertical;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: 0;
    background: #26272c;
}

.watch-comment-form textarea:focus {
    border-color: var(--videos-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.watch-comment-form-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 13px;
}

.watch-comment-form-footer small {
    margin-right: auto;
}

.watch-comment-form-footer .btn {
    padding: 9px 14px;
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 7px;
    background: var(--videos-accent);
}

.watch-comments-list {
    display: grid;
    gap: 12px;
}

.watch-comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: #191a1d;
}

.watch-comment > img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: #25262a;
}

.watch-comment-body {
    min-width: 0;
}

.watch-comment header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.watch-comment strong {
    font-size: 0.78rem;
}

.watch-comment time {
    color: #77787e;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.68rem;
}

.watch-comment p,
.watch-comments-empty {
    margin: 0;
    color: #bbbcc1;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.watch-comments-empty {
    padding: 28px 18px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.watch-suggestions {
    min-width: 0;
    padding-top: 39px;
}

.watch-suggestions-heading {
    margin-bottom: 22px;
}

.watch-suggestions-heading h2 {
    font-size: 1.5rem;
}

.suggested-video-card {
    margin-bottom: 18px;
}

.suggested-video-card a {
    display: grid;
    grid-template-columns: minmax(130px, 44%) minmax(0, 1fr);
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.suggested-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #25262a;
}

.suggested-video-play {
    width: 34px;
    height: 34px;
}

.suggested-video-play svg {
    width: 17px;
}

.suggested-video-copy h3 {
    font-size: 0.78rem;
}

.suggested-video-copy p,
.suggested-video-copy small {
    font-size: 0.7rem;
}

@media (min-width: 1720px) {
    .videos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .entertainment-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .videos-shell {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .videos-sidebar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .videos-sidebar-brand {
        justify-content: center;
        margin-right: 0;
        margin-left: 0;
    }

    .videos-sidebar-brand > span:last-child,
    .videos-sidebar-link span,
    .videos-sidebar-label,
    .videos-sidebar-divider,
    .videos-sidebar-community {
        display: none;
    }

    .videos-sidebar-link {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    .videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-detail-hero-layout.has-trailer {
        grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    }

    .game-detail-hero-layout.has-trailer .game-trailer-feature {
        grid-column: 1 / -1;
        width: min(860px, 100%);
    }

    .watch-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .entertainment-search-shell {
        width: 100%;
    }

    .entertainment-search-form {
        width: 100%;
    }

    .entertainment-channel-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .watch-suggestions {
        padding-top: 8px;
    }

    .entertainment-destination-card {
        min-height: 420px;
    }

    #suggested-videos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 991.98px) {
    .entertainment-destination-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .entertainment-destination-card {
        min-height: 440px;
    }
}

@media (max-width: 767.98px) {
    .videos-shell {
        display: block;
    }

    .videos-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        width: 100%;
        height: auto;
        gap: 5px;
        padding: 8px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .videos-sidebar-brand,
    .videos-sidebar-divider,
    .videos-sidebar-label,
    .videos-sidebar-community,
    .videos-sidebar-nav:nth-of-type(2) {
        display: none;
    }

    .videos-sidebar-nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        gap: 4px;
    }

    .videos-sidebar-link {
        min-width: 64px;
        min-height: 44px;
        gap: 5px;
        padding: 6px 9px;
        font-size: 0.62rem;
    }

    .videos-sidebar-link span {
        display: block;
    }

    .videos-sidebar-link.active {
        box-shadow: inset 0 -2px var(--videos-accent);
    }

    .videos-sidebar-link svg {
        width: 18px;
        height: 18px;
    }

    .videos-hero {
        min-height: 620px;
        align-items: end;
    }

    .entertainment-search-bar {
        top: 56px;
        padding: 10px 12px 14px;
    }

    .entertainment-search-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 0;
    }

    .entertainment-search-form {
        padding: 0;
    }

    .entertainment-channel-account {
        justify-self: stretch;
    }

    .entertainment-channel-account-button {
        width: 100%;
        max-width: none;
        justify-content: center;
        border-radius: 12px;
    }

    .entertainment-channel-account-menu {
        width: 100%;
    }

    .entertainment-search-input-wrap {
        min-height: 44px;
        padding-left: 14px;
    }

    .entertainment-search-results {
        right: 0;
        left: 0;
        max-height: 66vh;
        border-radius: 14px;
    }

    .entertainment-search-page-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .entertainment-search-page-heading {
        padding-top: 20px;
    }

    .entertainment-search-page-heading h1 {
        font-size: clamp(1.7rem, 10vw, 2.8rem);
    }

    .entertainment-search-result {
        grid-template-columns: 52px minmax(0, 1fr) 28px;
    }

    .entertainment-search-result img {
        width: 52px;
        height: 38px;
    }

    .entertainment-channel-results {
        grid-template-columns: 1fr;
    }

    .channel-page .videos-content {
        padding: 0 14px 58px;
    }

    .channel-page .entertainment-search-bar {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .channel-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        min-height: 0;
        padding: 24px;
        border-radius: 12px;
    }

    .channel-hero-avatar {
        width: 88px;
        height: 88px;
        border-width: 3px;
    }

    .channel-hero-copy h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
        line-height: 1;
    }

    .channel-videos {
        padding-bottom: 40px;
    }

    .games-hero,
    .game-detail-hero {
        min-height: 620px;
    }

    .game-detail-hero-layout,
    .game-detail-hero-layout.has-trailer {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 48px 0;
    }

    .game-detail-poster {
        width: min(190px, 60vw);
    }

    .game-detail-hero-layout.has-trailer .game-trailer-feature {
        width: 100%;
        grid-column: auto;
        padding: 8px;
        border-radius: 14px;
    }

    .entertainment-hero {
        min-height: 680px;
    }

    .entertainment-hero-image {
        object-position: 64% center;
    }

    .entertainment-hero-overlay {
        background:
            linear-gradient(0deg, #0f1012 3%, rgba(8, 9, 11, 0.65) 62%, rgba(8, 9, 11, 0.12) 100%),
            linear-gradient(90deg, rgba(8, 9, 11, 0.48), transparent);
    }

    .entertainment-hero-content {
        width: 100%;
        padding: 48px 24px;
    }

    .entertainment-hero h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .entertainment-destinations,
    .entertainment-latest {
        padding: 58px 18px 64px;
    }

    .entertainment-destination-grid,
    .entertainment-latest-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .entertainment-destination-card {
        min-height: 430px;
    }

    .entertainment-latest-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .videos-hero-image {
        object-position: 64% center;
    }

    .videos-hero-overlay {
        background:
            linear-gradient(0deg, #0f1012 3%, rgba(8, 9, 11, 0.58) 58%, rgba(8, 9, 11, 0.12) 100%),
            linear-gradient(90deg, rgba(8, 9, 11, 0.5), rgba(8, 9, 11, 0));
    }

    .videos-hero-content {
        width: 100%;
        padding: 48px 24px;
    }

    .videos-hero h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .videos-section-heading {
        display: block;
    }

    .videos-section-heading p {
        margin-top: 15px;
    }

    .videos-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .videos-library {
        padding-top: 42px;
    }

    .watch-grid {
        padding: 22px 14px 60px;
    }

    .watch-player-shell {
        width: calc(100% + 28px);
        margin-left: -14px;
    }

    .watch-player,
    .watch-player-error {
        border-radius: 0;
    }

    .custom-video-shell {
        border-radius: 0;
    }

    .custom-video-controls {
        padding: 36px 12px 12px;
    }

    .custom-video-options-menu-mobile {
        --videos-accent: #ffc107;
        position: fixed;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        z-index: 10000;
        width: auto;
        min-width: 0;
        max-height: calc(70vh - env(safe-area-inset-bottom));
        max-height: calc(70dvh - env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .custom-video-volume {
        display: none;
    }

    .custom-video-time {
        font-size: 0.72rem;
    }

    .custom-video-end-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .watch-title-row {
        display: block;
    }

    .watch-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .watch-comments-heading,
    .watch-comment-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .watch-comment-form-footer small {
        margin-right: 0;
    }

    .watch-comment-form-footer .btn {
        width: 100%;
    }

    #suggested-videos {
        display: block;
    }
}

