@media (max-width: 1050px) {
    .header-inner {
        min-height: 70px;
    }

    .nav-toggle {
        display: grid;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(14, 19, 29, 0.98);
        box-shadow: var(--shadow);
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav.is-open {
        display: grid;
    }

    .hero {
        min-height: auto;
        padding-top: 55px;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-screen {
        transform: none;
    }

    .category-grid,
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reel-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .trend-strip,
    .channel-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .trend-strip .video-card:first-child,
    .channel-list .featured-card {
        grid-column: auto;
        grid-row: auto;
    }

    .channel-hero {
        grid-template-columns: 1fr 1.2fr;
        gap: 35px;
    }

    .app-panel {
        grid-template-columns: 1fr 240px;
    }

    .brand-code {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(calc(100% - 28px), 1200px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-screen img {
        aspect-ratio: 4 / 3;
    }

    .hero-play {
        top: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
    }

    .hero-info {
        right: 19px;
        bottom: 18px;
        left: 19px;
    }

    .section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .section-heading,
    .watch-header {
        display: block;
    }

    .section-heading > p {
        margin-top: 10px;
        text-align: left;
    }

    .spotlight-layout,
    .rank-layout,
    .recommendation-board,
    .about-layout,
    .channel-hero,
    .split-panel,
    .watch-summary {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mini-stack .video-card {
        grid-template-columns: 42% 1fr;
    }

    .poster-grid,
    .reel-row,
    .classic-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classic-grid .featured-card {
        grid-row: auto;
    }

    .classic-grid .featured-card .cover img {
        aspect-ratio: 16 / 9;
    }

    .rank-list li {
        grid-template-columns: 38px 1fr auto;
    }

    .rank-list span,
    .rank-list time {
        display: none;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card.topic-wide {
        min-height: 330px;
        grid-row: auto;
    }

    .app-panel {
        margin-top: 62px;
        margin-bottom: 62px;
        padding: 35px 24px 55px;
        grid-template-columns: 1fr;
    }

    .brand-code {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .channel-feature {
        transform: none;
    }

    .watch-facts {
        margin-top: 15px;
    }

    .highlight-panel ul {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .end-note {
        grid-template-columns: 50px 1fr;
    }

    .end-note .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {
    .main-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 38px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-stats {
        gap: 20px;
    }

    .poster-grid,
    .category-grid,
    .anime-grid,
    .classic-grid,
    .trend-strip,
    .channel-list,
    .scene-grid,
    .related-grid,
    .episode-nav {
        grid-template-columns: 1fr;
    }

    .reel-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-stack .video-card {
        display: block;
    }

    .timeline::before {
        left: 75px;
    }

    .timeline article {
        grid-template-columns: 58px 34px 1fr;
    }

    .timeline time {
        font-size: 17px;
    }

    .editor-note {
        display: block;
    }

    .avatar {
        margin-bottom: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .copyright {
        display: grid;
        gap: 5px;
    }

    .player-controls {
        right: 8px;
        bottom: 8px;
        left: 8px;
        gap: 5px;
    }

    .big-play {
        width: 60px;
        height: 60px;
    }

    .watch-summary {
        padding: 40px 0;
    }

    .highlight-panel {
        padding: 27px;
    }

    .episode-nav .next {
        justify-content: start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
