/* Phone-only refinements. Tablet and desktop styles remain in their original files. */
@media (max-width: 600px) {
    body { min-width: 0; }
    input, select, textarea { font-size: 16px; }
    header { padding: 14px 16px; gap: 10px; }
    .logo { font-size: 24px; }
    .nav-auth { gap: 10px; margin-left: auto; font-size: 12px; }
    .btn-login, .btn-signup { display: inline-flex; align-items: center; min-height: 44px; }
    .btn-signup { padding: 10px 14px; }
    .toggle-menu { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
    .profile-toggle { min-height: 44px; max-width: min(180px, 44vw); font-size: 12px; }
    .profile-dropdown { max-width: calc(100vw - 32px); }
    .search-box { margin-top: 2px; }
    .search-box input { min-height: 46px; font-size: 16px; padding: 11px 12px 11px 16px; }
    .search-box i { top: 16px; right: 16px; font-size: 14px; }
    .nav-links { padding: 8px; margin: 0; }
    .nav-links.open { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: thin; }
    .nav-links li { flex: 0 0 auto; }
    .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; font-size: 12px; white-space: nowrap; }
    .hero-carousel { height: auto; margin: 4px 16px 0; border-radius: 20px; }
    .slide { position: relative; display: none; padding: 20px 20px 70px; grid-template-columns: minmax(0,1fr); grid-template-rows: 180px auto; gap: 20px; align-content: stretch; }
    .slide.active { display: grid; }
    .hero-art { grid-row: 1; width: 100%; height: 180px; max-width: none; }
    .hero-cover { width: 126px; height: 174px; border-radius: 14px; transform: rotate(5deg); }
    .art-orbit { width: 200px; height: 110px; }
    .art-caption { bottom: 0; left: auto; right: 0; padding: 8px 10px; font-size: 9px; }
    .art-spark { font-size: 26px; top: 10px; right: 24px; }
    .content { align-self: center; }
    .kove-label { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.4px; }
    .movie-title { font-size: 30px; line-height: 1.15; letter-spacing: -.8px; margin-bottom: 12px; }
    .movie-meta { flex-wrap: wrap; margin-bottom: 12px; }
    .movie-meta span { font-size: 10px; }
    .description { font-size: 13px; line-height: 1.65; -webkit-line-clamp: 2; margin-bottom: 16px; }
    .action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .btn { min-height: 44px; padding: 11px 12px; font-size: 12px; line-height: 1.4; text-align: center; }
    .carousel-nav { right: 20px; bottom: 14px; gap: 10px; }
    .nav-btn { width: 44px; height: 44px; }
    .empty-slide { grid-template-rows: 1fr; }
    .site-section { padding: 32px 16px 0; }
    .section-topline { align-items: baseline; flex-wrap: wrap; gap: 4px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 10px; }
    .section-count { font-size: 11px; margin-bottom: 10px; }
    .section-heading { font-size: 26px; margin-bottom: 18px; }
    .series-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .series-card { padding: 6px; border-radius: 14px; }
    .series-art { aspect-ratio: 2 / 3; border-radius: 10px; }
    .series-card-body { padding: 12px 4px 6px; }
    .series-card h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 38px; line-height: 1.45; font-size: 13px; margin-bottom: 8px; overflow-wrap: anywhere; }
    .series-card-bottom { gap: 6px; font-size: 10px; }
    .read-pill { padding: 8px 12px; }
    .series-badge { left: 8px; bottom: 8px; }
    .stats-grid { padding: 16px 0; }
    .stat-circle { padding: 6px; }
    .stat-number { font-size: 28px; overflow-wrap: anywhere; }
    .stat-label { font-size: 10px; letter-spacing: 0; }
    .info-card { gap: 14px; padding: 12px; align-items: flex-start; }
    .card-img { width: 32%; height: 150px; flex-shrink: 0; }
    .card-title { font-size: 14px; overflow-wrap: anywhere; }
    .card-description { font-size: 12px; margin-bottom: 12px; -webkit-line-clamp: 2; }
    .btn-learn { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
    .site-footer { margin-top: 36px; padding: 24px 16px; }
    .footer-nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 16px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
    .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
    .site-footer:has(> a) { display: grid; grid-template-columns: repeat(4, max-content); justify-content: start; gap: 12px 16px; overflow-x: auto; }
    .site-footer > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; letter-spacing: 0; }
    .site-footer > .copyright { grid-column: 1 / -1; }
    .copyright { line-height: 1.8; }
    .topbar { padding: 8px 16px; }
    .topbar .back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
    .series-hero { min-height: 330px; padding: 40px 20px 24px; }
    .series-info { min-width: 0; width: 100%; }
    .series-info h1 { font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
    .series-info p { font-size: 14px; }
    .favorite-action { margin-top: 18px; }
    .favorite-action > a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px; border: 1px solid #a06cc5; border-radius: 24px; background: #20132de6; color: #eedcff; text-decoration: none; font-size: 14px; text-align: center; }
    .favorite-action form { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .favorite-action button, .favorite-action .profile-wallet-link { width: 100%; min-height: 48px; padding: 12px 16px; font-size: 14px; }
    .chapters { padding: 28px 16px; }
    .chapters h2 { font-size: 24px; margin-bottom: 18px; }
    .chapter { padding: 16px; gap: 12px; border-radius: 12px; min-height: 76px; }
    .chapter > div:first-child { min-width: 0; }
    .chapter-number { font-size: 14px; }
    .chapter-title { font-size: 12px; overflow-wrap: anywhere; }
    .chapter-right { flex-shrink: 0; text-align: right; font-size: 11px; }
    .chapter-right .price-badge { display: block; font-size: 12px; margin-bottom: 5px; }
    .account-nav { gap: 12px; font-size: 12px; margin-left: 0; }
    .account-nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .account-main { padding: 22px 16px 40px; }
    .profile-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
    .profile-heading h1 { font-size: 28px; line-height: 1.3; margin-bottom: 8px; }
    .wallet { padding: 20px; border-radius: 18px; min-width: 0; }
    .wallet strong { font-size: 34px; overflow-wrap: anywhere; margin-bottom: 14px; }
    .wallet .btn { width: 100%; }
    .account-section { margin-top: 32px; }
    .account-row { padding: 16px; gap: 10px; font-size: 13px; }
    .account-row > * { min-width: 0; overflow-wrap: anywhere; }
    .account-row strong { font-size: 14px; }
    .account-section .series-card .btn { width: 100%; padding: 10px 6px; }
    .unlock-card { margin: 20px 16px; padding: 24px 20px; border-radius: 20px; }
    .unlock-card h1 { font-size: 28px; }
    .unlock-card > .muted:first-child { display: inline-flex; align-items: center; min-height: 44px; }
    .unlock-card .eyebrow { margin-top: 20px; }
    .unlock-card .btn { width: 100%; }
    .notice { padding: 16px; font-size: 14px; overflow-wrap: anywhere; }
    .login-body { padding: 20px 16px; min-height: 100svh; }
    .login-card { width: 100%; max-width: 420px; padding: 28px 22px; }
    .login-card input { font-size: 16px; min-height: 48px; }
    .login-card .btn-admin { min-height: 48px; }
    .reader-nav { grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 8px 12px; }
    .reader-nav > div:last-child:empty { display: none; }
    .reader-nav .back-btn { min-width: 44px; min-height: 44px; justify-content: center; }
    .reader-title { min-width: 0; }
    .series-name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
    .chapter-name { font-size: 14px; overflow-wrap: anywhere; }
    .chapter-pagination { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px; gap: 8px; }
    .chapter-pagination a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; text-align: center; }
    #retry-panels { min-height: 48px; }
}
@media (max-width: 360px) {

    .slide { padding-left: 16px; padding-right: 16px; }
    .movie-title { font-size: 28px; }
    .nav-auth { gap: 8px; }
    .btn-signup { padding: 10px; }
}


/* Cover-led phone homepage, inspired by the mobile reading-app reference. */
@media (max-width: 600px) {
    .home-page { background: #121016; }
    .home-page header { background: #17111f; padding: 10px 16px; }
    .home-page .search-box { margin-bottom: 2px; }
    .home-page .hero-carousel { margin: 0; border: 0; border-radius: 0; height: 460px; background: #301745; }
    .home-page .slide { position: absolute; inset: 0; padding: 0; display: none; }
    .home-page .slide.active { display: flex; align-items: flex-end; }
    .home-page .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
    .home-page .hero-cover { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border: 0; border-radius: 0; transform: none; box-shadow: none; }
    .home-page .hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #110a1c00 25%, #1d0b2c44 48%, #190c2be8 76%, #271039 100%); }
    .home-page .art-orbit, .home-page .art-caption, .home-page .art-spark { display: none; }
    .home-page .content { position: relative; z-index: 2; align-self: auto; width: 100%; padding: 24px 20px 68px; text-align: center; }
    .home-page .kove-label { display: none; }
    .home-page .movie-title { font-size: clamp(26px, 7.5vw, 38px); line-height: 1.15; margin-bottom: 12px; text-shadow: 0 2px 14px #150b26; }
    .home-page .movie-meta { justify-content: center; margin-bottom: 10px; }
    .home-page .movie-meta span { border-radius: 4px; padding: 4px 8px; background: #170c28c9; color: #eddaff; }
    .home-page .description { color: #f0e5fa; margin: 0 auto 14px; font-size: 13px; line-height: 1.5; }
    .home-page .description:empty { display: none; }
    .home-page .action-buttons { display: flex; justify-content: center; }
    .home-page .action-buttons .btn-outline { display: none; }
    .home-page .action-buttons .btn-play { padding: 11px 24px; min-height: 44px; }
    .home-page .carousel-nav { right: 16px; bottom: 10px; gap: 8px; }
    .home-page .nav-btn { background: #1d112a80; border-color: #e1c8f54d; }
    .home-page .hero-carousel::after { display: none; }
    .home-page .empty-slide .content { text-align: left; }
    .home-page .site-section { padding-top: 26px; }
    .home-page .section-heading { font-size: 21px; letter-spacing: -.4px; margin-bottom: 16px; }
    .home-page .section-topline .eyebrow, .home-page #trending > .eyebrow { display: none; }
    .home-page .section-count { margin-bottom: 8px; color: #b7a7c3; }
    .home-page .series-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 35%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 0 0 12px; scrollbar-width: thin; scrollbar-color: #754795 #201725; }
    .home-page .series-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; scroll-snap-align: start; }
    .home-page .series-art { aspect-ratio: 3 / 4; border-radius: 7px; }
    .home-page .series-badge { left: 6px; bottom: 6px; font-size: 7px; padding: 4px 6px; }
    .home-page .series-card-body { padding: 8px 0 0; }
    .home-page .series-card h3 { font-size: 12px; min-height: 35px; margin-bottom: 4px; }
    .home-page .series-card-bottom { color: #ce9af3; font-size: 11px; }
    .home-page .series-card-bottom > span:first-child { display: none; }
    .home-page .read-pill { background: none; color: #ce9af3; padding: 4px 0; border-radius: 0; }
    .home-page .highlights { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; gap: 12px; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #754795 #201725; }
    .home-page .info-card { scroll-snap-align: start; background: #1b1421; }
    .home-page .stats-section { padding-top: 30px; }
    .home-page .stats-section .eyebrow { display: none; }
    .home-page .stats-section .section-heading { font-size: 19px; }
}
