@media (max-width: 1180px) {
    .header-shell {
        grid-template-columns: auto 1fr;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .search-box {
        justify-self: end;
    }

    .poster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .poster-grid .poster-card:nth-child(n + 5) {
        display: none;
    }
}

@media (max-width: 820px) {
    .page-shell,
    .header-shell,
    .mobile-callout {
        width: min(100% - 28px, 1400px);
    }

    .hero {
        min-height: 510px;
    }

    .hero-content {
        left: 7%;
        bottom: 12%;
        width: 78%;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(5, 8, 19, 0.98), rgba(5, 8, 19, 0.26));
    }

    .quick-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .poster-grid,
    .section-short .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .poster-grid .poster-card:nth-child(4) {
        display: none;
    }

    .timeline-list,
    .upcoming-grid,
    .rank-columns {
        grid-template-columns: 1fr;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .about-section,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .channel-feature {
        grid-template-columns: 1fr;
    }

    .channel-feature > img {
        aspect-ratio: 16 / 9;
    }

    .detail-hero {
        grid-template-columns: 240px 1fr;
        gap: 28px;
        padding: 28px;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .recommendations .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .header-shell {
        grid-template-columns: 1fr auto;
        min-height: 66px;
    }

    .brand img {
        width: 158px;
    }

    .menu-toggle {
        display: grid;
        gap: 4px;
        width: 42px;
        height: 42px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid var(--line);
        border-radius: 11px;
    }

    .menu-toggle span {
        height: 2px;
        background: #ffffff;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        padding: 8px 0 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .search-box {
        display: none;
    }

    .home-main,
    .inner-main {
        padding-top: 16px;
    }

    .hero {
        min-height: 480px;
        border-radius: 18px;
    }

    .hero-content {
        left: 22px;
        bottom: 55px;
        width: calc(100% - 44px);
    }

    .hero h2 {
        font-size: 42px;
    }

    .hero-desc {
        margin: 10px 0 18px;
        font-size: 14px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        right: auto;
        left: 22px;
        bottom: 20px;
    }

    .button-row {
        width: 100%;
    }

    .button {
        flex: 1 1 140px;
        padding: 0 14px;
    }

    .quick-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 42px;
    }

    .content-section,
    .update-timeline,
    .upcoming-band,
    .about-section,
    .episode-section,
    .stills-section,
    .plot-panel {
        margin-top: 46px;
    }

    .section-tv,
    .section-doc,
    .update-timeline,
    .rank-band,
    .upcoming-band,
    .episode-section,
    .plot-panel {
        padding: 22px;
    }

    .poster-grid,
    .section-short .poster-grid,
    .recommendations .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .poster-grid .poster-card:nth-child(4) {
        display: block;
    }

    .poster-grid .poster-card:nth-child(5) {
        display: none;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-desc {
        display: none;
    }

    .text-link {
        display: inline-block;
        margin-top: 8px;
    }

    .rank-list li {
        grid-template-columns: 36px 1fr 36px;
    }

    .rank-list li > span:nth-child(3) {
        display: none;
    }

    .about-section,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-section {
        padding: 30px 0;
    }

    .mobile-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .mobile-art img {
        width: 96px;
        height: 96px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .channel-intro,
    .rank-hero {
        padding: 28px;
    }

    .channel-intro {
        align-items: flex-start;
    }

    .channel-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 25px;
    }

    .filter-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .channel-feature > div {
        padding: 26px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .detail-poster {
        width: min(72%, 280px);
        margin: auto;
    }

    .facts div {
        grid-template-columns: 80px 1fr;
    }

    .stills-grid {
        grid-template-columns: 1fr;
    }

    .play-notice {
        flex-direction: column;
        gap: 2px;
    }

    .player-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .player-nav > :last-child {
        text-align: center;
    }
}
