@media (max-width: 1180px) {
    .header-shell {
        gap: 14px;
    }

    .search-box {
        width: 190px;
    }

    .nav-link {
        min-width: 52px;
        padding-inline: 5px;
    }

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

    .media-grid .media-card:nth-child(n + 5) {
        display: none;
    }
}

@media (max-width: 940px) {
    .header-shell {
        min-height: 68px;
        flex-wrap: wrap;
    }

    .brand-heading {
        margin-right: auto;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        place-content: center;
        gap: 4px;
        background: var(--panel);
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        background: #ffffff;
    }

    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        transition: max-height 0.25s ease;
    }

    .main-nav.is-open {
        max-height: 90px;
        padding-bottom: 10px;
    }

    .nav-link {
        flex: 0 0 66px;
    }

    .hero {
        min-height: 470px;
    }

    .quick-channel {
        grid-template-columns: repeat(4, 1fr);
    }

    .rank-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rank-panel .section-heading {
        position: static;
        display: flex;
    }

    .detail-layout {
        grid-template-columns: 210px 1fr;
        padding: 36px;
        gap: 30px;
    }

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

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

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

    .footer-grid nav:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 720px) {
    main,
    .inner-main,
    .player-main,
    .header-shell,
    .mobile-callout {
        width: min(calc(100% - 24px), var(--max));
    }

    main {
        padding-top: 12px;
    }

    .brand img {
        width: 144px;
        height: auto;
    }

    .search-box {
        display: none;
    }

    .hero {
        min-height: 500px;
        border-radius: 20px;
    }

    .hero-slide > img {
        object-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(4, 7, 12, 0.98) 0%, rgba(4, 7, 12, 0.8) 56%, rgba(4, 7, 12, 0.16) 100%);
    }

    .hero-content {
        top: auto;
        right: 20px;
        bottom: 62px;
        left: 20px;
        width: auto;
        transform: none;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .hero-summary {
        font-size: 15px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        left: 20px;
        bottom: 24px;
    }

    .button-row .button {
        flex: 1 1 140px;
    }

    .quick-channel {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .quick-channel a {
        padding: 12px 4px;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
    }

    .content-section {
        margin-top: 52px;
    }

    .media-grid,
    .section-rail .media-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .media-grid .media-card:nth-child(n) {
        display: block;
    }

    .section-rail {
        padding: 22px 14px;
        border-radius: 20px;
    }

    .section-split {
        padding-left: 14px;
    }

    .card-body {
        min-height: 108px;
        padding: 11px;
    }

    .card-body h3 {
        height: 44px;
        font-size: 15px;
    }

    .card-foot span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .update-board {
        padding: 20px 14px;
    }

    .update-list {
        grid-template-columns: 1fr;
    }

    .update-list a {
        grid-template-columns: 44px 56px 1fr;
    }

    .update-list a > span:last-child {
        display: none;
    }

    .premiere-strip {
        min-height: auto;
        padding: 34px 24px;
    }

    .premiere-stack {
        display: none;
    }

    .about-home {
        padding: 28px 22px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-mark {
        width: 100px;
    }

    .mobile-callout {
        margin-top: 62px;
        padding: 30px 22px;
    }

    .mobile-copy h2 {
        font-size: 30px;
    }

    .qr-art {
        width: 110px;
        height: 110px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 24px;
    }

    .footer-brand,
    .footer-grid nav:last-child {
        grid-column: 1 / 3;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .channel-banner {
        min-height: auto;
        padding: 30px 22px;
    }

    .channel-stat {
        display: none;
    }

    .channel-banner h1 {
        font-size: 38px;
    }

    .channel-feature {
        min-height: 430px;
    }

    .channel-feature::after {
        background: linear-gradient(0deg, rgba(5, 8, 14, 0.96), rgba(5, 8, 14, 0.22));
    }

    .channel-feature > div {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        padding: 28px 22px;
    }

    .channel-feature h2 {
        font-size: 34px;
    }

    .detail-layout {
        padding: 26px 20px;
        grid-template-columns: 118px 1fr;
        gap: 18px;
        align-items: start;
    }

    .detail-info h1 {
        font-size: 32px;
    }

    .detail-facts,
    .detail-summary,
    .detail-info > .button {
        grid-column: 1 / -1;
    }

    .detail-facts {
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .detail-info {
        display: contents;
    }

    .episode-section {
        padding: 20px 14px;
    }

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

    .stills-grid {
        grid-template-columns: 1fr;
    }

    .stills-grid img {
        aspect-ratio: 16 / 9;
    }

    .prose-page {
        padding: 32px 22px;
    }

    .prose-page h1 {
        font-size: 38px;
    }
}

@media (max-width: 420px) {
    .quick-channel {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-callout {
        align-items: flex-start;
    }

    .qr-art {
        width: 86px;
        height: 86px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
