@media (max-width: 1080px) {
    .menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        padding: 14px;
        display: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        background: #0b1829;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .main-nav.open {
        display: grid;
    }

    .nav-link {
        justify-content: center;
    }

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

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

    .channel-aside {
        position: static;
    }

    .mini-rank {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .classic-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-title {
        margin-right: 0;
    }

    .main-nav {
        top: 68px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        padding: 36px 0 46px;
    }

    .hero-grid,
    .popular-split,
    .channel-hero-grid,
    .watch-heading,
    .story-grid,
    .watch-guide,
    .about-grid,
    .app-section,
    .topic-grid,
    .editor-note {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .channel-hero-grid {
        gap: 32px;
    }

    .hero-copy h2 {
        font-size: 2.55rem;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 10px;
    }

    .section {
        margin-top: 62px;
    }

    .latest-strip,
    .short-section,
    .rank-section,
    .classic-section {
        padding: 56px 0;
    }

    .three-col,
    .two-col {
        grid-template-columns: 1fr;
    }

    .anime-grid .video-card:nth-child(1) {
        grid-column: span 1;
    }

    .anime-grid .video-card:nth-child(1) .cover {
        aspect-ratio: 16 / 10;
    }

    .release-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .release-timeline li {
        padding: 12px 0 12px 34px;
    }

    .release-timeline li::before {
        top: 0;
        bottom: 0;
        left: 8px;
        width: 2px;
        height: auto;
    }

    .release-timeline > li > span {
        position: absolute;
        top: 22px;
        left: 2px;
        margin: 0;
    }

    .rank-row {
        grid-template-columns: 42px 1fr auto;
    }

    .rank-row span:nth-of-type(2),
    .rank-row time {
        display: none;
    }

    .editor-note {
        text-align: left;
    }

    .app-section {
        padding: 32px 24px;
    }

    .qr-card {
        justify-self: center;
    }

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

    .watch-meta {
        text-align: left;
    }

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

    .player-controls {
        right: 8px;
        bottom: 5px;
        left: 8px;
        gap: 4px;
    }

    .player-controls button {
        width: 30px;
    }

    .player-center {
        width: 60px;
        height: 60px;
    }

    .mini-rank {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .brand-mark img {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .four-col,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .video-card p {
        min-height: 0;
    }

    .episode-stack a {
        grid-template-columns: 96px 1fr;
    }

    .episode-stack img {
        width: 96px;
    }

    .episode-stack em {
        display: none;
    }

    .topic-main {
        aspect-ratio: 4 / 5;
    }

    .previous-next {
        grid-template-columns: 1fr;
    }

    .previous-next a:last-child,
    .nav-empty:last-child {
        text-align: left;
    }

    .watch-actions,
    .copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
