
/* TOONLOKA MOBILE OPTIMIZATION V1 */

.tl-mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    html {
        scroll-padding-top: 85px;
    }

    body.tl-has-mobile-nav {
        padding-bottom: calc(
            72px + env(safe-area-inset-bottom, 0px)
        );
    }

    .tl-mobile-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;

        background: #ffffff;
        border-top: 1px solid #e5e7eb;

        padding: 8px 4px calc(
            8px + env(safe-area-inset-bottom, 0px)
        );

        box-shadow: 0 -4px 20px rgba(0,0,0,.04);
    }

    .tl-mobile-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        min-height: 50px;
        color: #858585;

        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;
    }

    .tl-mobile-item.active {
        color: #009d45;
        font-weight: 700;
    }

    .tl-mobile-item.active svg {
        stroke-width: 2.2;
    }

    /* HEADER */

    .topbar .nav-shell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        gap: 10px;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    .topbar .desktop-nav {
        display: none !important;
    }

    .topbar .nav-right {
        display: flex !important;
        align-items: center;
        margin-left: auto;
        min-width: 0;
    }

    .topbar .brand-shape {
        transform-origin: center;
        scale: .85;
    }

    .tl-account-dropdown {
        position: relative;
    }

    /* HOMEPAGE */

    .content-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .tl-hero {
        margin-bottom: 16px;
    }

    .catalog-tools {
        margin-top: 18px;
    }

    .comic-search-form,
    .comic-search-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .comic-search-box input {
        min-width: 0;
        font-size: 12px;
    }

    .catalog-category-filter,
    .category-tabs,
    .feed-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
    }

    .catalog-category-filter::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar,
    .feed-tabs::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter-pill,
    .category-tab,
    .feed-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .catalog-sort {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 15px;
        font-size: 12px;
    }

    .catalog-sort select {
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        font-size: 12px;
    }

    .section-title-row h1,
    .section-title-row h2 {
        font-size: 19px;
        line-height: 1.4;
    }

    .rank-carousel,
    .category-carousel {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 38%;
        grid-template-columns: none !important;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .rank-carousel .comic-card,
    .category-carousel .comic-card {
        min-width: 0;
        width: 100%;
        scroll-snap-align: start;
    }

    .latest-grid,
    .search-result-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .comic-card .cover {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        border-radius: 5px;
    }

    .comic-card .cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .comic-card .comic-title {
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .comic-card .comic-genre {
        font-size: 10px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 360px) {

    .latest-grid,
    .search-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tl-mobile-item {
        font-size: 9px;
    }
}

/* =========================================
   TOONLOKA MOBILE HOMEPAGE V2
========================================= */

@media (max-width: 768px) {

    /* HEADER REFINEMENT */

    .topbar .nav-shell {
        min-height: 65px;
        height: auto;
        padding: 8px 16px;
        gap: 8px;
    }

    .topbar .tl-account-admin {
        display: none !important;
    }

    .topbar .tl-account-login,
    .topbar .tl-account-register {
        padding: 11px 17px;
        font-size: 11px;
    }

    /* HERO BANNER */

    .tl-hero {
        width: auto;
        margin: 12px 15px 20px;
        border-radius: 12px;
        overflow: hidden;
    }

    .tl-hero-slide {
        min-height: 280px;
        aspect-ratio: auto;
    }

    .tl-hero-content {
        min-height: 280px;
        padding: 30px 24px 38px;
        justify-content: center;
    }

    .tl-hero-label {
        font-size: 9px;
        letter-spacing: 1.8px;
        margin-bottom: 12px;
    }

    .tl-hero-title {
        font-size: 32px;
        line-height: 1.12;
        letter-spacing: -1px;
        margin-bottom: 12px;
    }

    .tl-hero-description {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .tl-hero-cta {
        font-size: 11px;
        padding: 12px 16px;
        gap: 10px;
    }

    .tl-hero-arrow {
        width: 27px;
        height: 27px;
        font-size: 19px;
    }

    .tl-hero-controls {
        bottom: 10px;
    }

    /* MOBILE BANNER WITH IMAGE */

    .tl-hero-slide:not(.tl-hero-fallback) {
        min-height: 340px;
    }

    .tl-hero-slide:not(.tl-hero-fallback)
    .tl-hero-content {
        min-height: 340px;
        justify-content: flex-end;
    }

    /* SEARCH */

    .catalog-tools {
        margin: 0 auto !important;
        padding-top: 8px !important;
        padding-bottom: 12px !important;
    }

    .comic-search-form {
        margin: 0 !important;
    }

    .comic-search-box {
        min-height: 44px;
        border-radius: 9px;
        overflow: hidden;
    }

    .comic-search-box input {
        font-size: 12px;
    }

    .comic-search-box button {
        padding: 12px 18px;
        font-size: 11px;
    }

    /* CATEGORY FILTER */

    .catalog-category-filter {
        justify-content: flex-start !important;
        margin-top: 15px !important;
        padding-bottom: 5px;
    }

    .catalog-filter-pill,
    .category-tab {
        padding: 10px 15px;
        font-size: 11px;
        border-radius: 30px;
    }

    .catalog-sort {
        margin-top: 8px;
        margin-bottom: 0;
    }

    /* HOMEPAGE SECTION SPACING */

    .first-section,
    .category-section,
    .latest-section,
    .search-result-section {
        margin-top: 26px !important;
        margin-bottom: 26px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .section-title-row {
        margin-bottom: 14px;
        gap: 8px;
    }

    .section-title-row h1,
    .section-title-row h2 {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    .section-title-row .see-all {
        font-size: 10px;
        white-space: nowrap;
    }

    /* TRENDING TABS */

    .feed-tabs {
        margin-bottom: 12px !important;
    }

    .feed-tab {
        font-size: 11px;
        padding: 10px 16px;
    }

    /* COMIC CARDS */

    .rank-carousel,
    .category-carousel {
        grid-auto-columns: 31.5%;
        gap: 10px;
    }

    .comic-card .cover {
        aspect-ratio: 3 / 4;
        border-radius: 6px;
    }

    .comic-card .comic-title {
        font-size: 12px;
        font-weight: 700;
        margin-top: 8px;
        line-height: 1.4;
    }

    .comic-card .comic-genre {
        font-size: 10px;
        margin-top: 4px;
    }

    .big-rank {
        font-size: 36px !important;
    }

    /* FOOTER */

    .footer {
        margin-top: 25px;
    }

    /* MOBILE NAVIGATION */

    .tl-mobile-nav {
        padding-top: 5px;
        padding-bottom: calc(
            5px + env(safe-area-inset-bottom, 0px)
        );
    }

    .tl-mobile-item {
        min-height: 53px;
        gap: 5px;
    }

    .tl-mobile-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {

    .tl-hero-title {
        font-size: 28px;
    }

    .tl-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title-row h1,
    .section-title-row h2 {
        font-size: 16px;
    }

    .rank-carousel,
    .category-carousel {
        grid-auto-columns: 40%;
    }
}

/* =========================================
   TOONLOKA MOBILE COMIC DETAIL V1
========================================= */

@media (max-width: 768px) {

    /* HOMEPAGE BANNER FIX */

    .tl-hero {
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        margin: 12px auto 20px !important;
        box-sizing: border-box;
    }

    .tl-hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* COMIC DETAIL */

    .cd-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .cd-hero {
        padding: 20px 0 26px;
    }

    .cd-breadcrumb {
        font-size: 10px;
        margin-bottom: 20px;
        gap: 7px;
    }

    .cd-hero-grid {
        display: grid;
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .cd-cover-wrap {
        width: 100%;
        max-width: 115px;
        margin: 0;
    }

    .cd-cover {
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 7px;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .cd-original {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 8px;
    }

    .cd-kicker {
        font-size: 8px;
        letter-spacing: 1px;
        margin: 3px 0 8px;
    }

    .cd-title {
        font-size: 25px;
        line-height: 1.2;
        letter-spacing: -.8px;
        margin-bottom: 8px;
    }

    .cd-author {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .cd-tags {
        gap: 5px;
        margin-bottom: 12px;
    }

    .cd-tag {
        padding: 5px 7px;
        font-size: 9px;
    }

    .cd-description {
        font-size: 12px;
        line-height: 1.8;
        margin-bottom: 18px;
    }

    /* FULL WIDTH INFORMATION */

    .cd-hero-grid > div:nth-child(2) {
        display: contents;
    }

    .cd-cover-wrap {
        grid-column: 1;
        grid-row: 1 / 5;
    }

    .cd-kicker,
    .cd-title,
    .cd-author,
    .cd-tags {
        grid-column: 2;
        margin-bottom: 0;
    }

    .cd-description,
    .cd-stats,
    .cd-actions,
    .cd-feedback {
        grid-column: 1 / -1;
    }

    .cd-description {
        grid-row: 7;
    }

    .cd-stats {
        grid-row: 5;
    }

    .cd-actions {
        grid-row: 6;
    }

    .cd-feedback {
        grid-row: 8;
    }

    .cd-feedback:empty {
        display: none;
    }

    /* STATISTICS */

    .cd-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        padding: 15px 0;
        margin: 0;
    }

    .cd-stat {
        padding: 0 4px;
        text-align: center;
    }

    .cd-stat strong {
        font-size: 19px;
    }

    .cd-stat span {
        font-size: 10px;
        margin-top: 5px;
    }

    /* BUTTONS */

    .cd-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .cd-actions .cd-btn {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 13px;
        font-size: 11px;
    }

    .cd-actions .cd-primary {
        flex: 1;
    }

    /* EPISODE LIST */

    .cd-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding-top: 25px;
        padding-bottom: 30px;
        gap: 22px;
    }

    .cd-section-heading h2 {
        font-size: 19px;
    }

    .cd-section-heading {
        margin-bottom: 15px;
    }

    .cd-sort {
        padding: 9px;
        font-size: 11px;
    }

    .cd-search {
        font-size: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .cd-episode-row {
        grid-template-columns: 85px minmax(0, 1fr) 12px;
        gap: 12px;
        padding: 12px 0;
    }

    .cd-episode-thumb {
        width: 85px;
        height: 62px;
        border-radius: 5px;
    }

    .cd-episode-title {
        font-size: 13px;
    }

    .cd-episode-subtitle {
        font-size: 11px;
        line-height: 1.6;
    }

    .cd-episode-date {
        display: none;
    }

    /* COMMUNITY */

    .cm-community {
        margin-top: 25px;
        padding-top: 24px;
    }

    .cm-rating-summary {
        padding: 18px;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .cm-heading {
        font-size: 19px;
    }

    .cm-star {
        font-size: 30px;
    }

    .cm-textarea {
        font-size: 14px;
    }

    .cm-comment-text {
        font-size: 12px;
    }

    /* SERIAL INFORMATION */

    .cd-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cd-side-box {
        padding: 16px;
        margin-bottom: 0;
    }

}

@media (max-width: 360px) {

    .cd-hero-grid {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 12px;
    }

    .cd-cover-wrap {
        max-width: 95px;
    }

    .cd-title {
        font-size: 21px;
    }

    .cd-stat strong {
        font-size: 16px;
    }

    .cd-actions .cd-btn {
        padding: 10px;
        font-size: 10px;
    }
}
/* MOBILE HEADER FIX */

@media (max-width: 768px) {

    .topbar {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: #ffffff;
    }

    .cd-hero {
        padding-top: 20px;
    }

    .cd-hero-grid {
        min-width: 0;
    }

    .cd-title {
        overflow-wrap: anywhere;
    }

    .tl-hero {
        margin-top: 12px !important;
    }

    .cd-page {
        padding-top: 0;
    }

}

/* =========================================
   TOONLOKA MOBILE USER EXPERIENCE
========================================= */

@media (max-width: 768px) {

    /* ACCOUNT HEADER */

    .auth-header-inner {
        min-height: 64px;
        padding: 12px 16px;
    }

    .auth-brand {
        font-size: 23px;
        letter-spacing: -.8px;
    }

    .auth-back {
        font-size: 11px;
    }

    /* USER PROFILE */

    .pf-shell {
        width: 100%;
        max-width: 100%;
        margin: 18px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .pf-card {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .pf-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .pf-avatar {
        width: 85px;
        height: 85px;
    }

    .pf-name {
        font-size: 23px;
        margin-bottom: 5px;
    }

    .pf-member {
        margin-top: 8px;
        font-size: 10px;
    }

    .pf-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
        margin-top: 22px;
    }

    .pf-stat {
        padding: 14px 5px;
        text-align: center;
    }

    .pf-stat strong {
        font-size: 22px;
    }

    .pf-stat span {
        font-size: 10px;
        line-height: 1.5;
    }

    .pf-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pf-card h2 {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .pf-upload-preview {
        width: 70px;
        height: 70px;
    }

    .pf-info {
        padding: 13px 0;
    }

    .pf-info strong {
        font-size: 13px;
    }

    .pf-logout {
        width: 100%;
        min-height: 44px;
    }

    /* FAVORITES & READING HISTORY */

    .fv-shell,
    .rh-shell {
        width: 100%;
        max-width: 100%;
        margin: 22px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .fv-head h1,
    .rh-head h1 {
        font-size: 25px;
        letter-spacing: -.7px;
    }

    .fv-muted,
    .rh-muted {
        font-size: 12px;
    }

    .fv-grid,
    .rh-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 12px;
    }

    .fv-card,
    .rh-card {
        padding: 14px;
        gap: 13px;
        border-radius: 10px;
    }

    .fv-cover,
    .rh-cover {
        width: 90px;
        height: 125px;
        border-radius: 6px;
    }

    .fv-title,
    .rh-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .fv-actions,
    .rh-actions {
        gap: 6px;
    }

    .fv-button,
    .rh-button {
        padding: 10px 12px;
        min-height: 40px;
        font-size: 11px;
    }

    .fv-tabs,
    .rh-tabs {
        gap: 20px;
        margin-bottom: 20px;
    }

    .fv-tab,
    .rh-tabs a {
        font-size: 12px;
    }

    /* READING STATISTICS */

    .rh-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 8px;
        margin-bottom: 20px;
    }

    .rh-stat {
        padding: 14px 8px;
        text-align: center;
    }

    .rh-stat strong {
        font-size: 23px;
    }

    .rh-stat .rh-muted {
        font-size: 10px;
    }

    /* EMPTY STATE */

    .fv-empty,
    .rh-empty {
        padding: 45px 20px;
        border-radius: 12px;
    }

    .fv-empty h2,
    .rh-empty h2 {
        font-size: 19px;
    }

    .fv-empty p,
    .rh-empty p {
        font-size: 12px;
        line-height: 1.8;
    }

    /* FORM ACCESSIBILITY */

    .auth-input,
    .cd-search,
    .cm-textarea,
    .comic-search-box input {
        font-size: 16px;
    }

    .auth-submit {
        min-height: 46px;
    }

    .auth-footer {
        padding-bottom: 25px;
    }
}

@media (max-width: 360px) {

    .fv-cover,
    .rh-cover {
        width: 75px;
        height: 105px;
    }

    .fv-card,
    .rh-card {
        gap: 10px;
        padding: 12px;
    }

    .pf-stat strong {
        font-size: 19px;
    }

    .fv-button,
    .rh-button {
        padding: 9px;
        font-size: 10px;
    }
}

/* =========================================
   TOONLOKA BLACK EMERALD V11
   MOBILE EXPERIENCE
========================================= */

.tl-mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    /* ===== GLOBAL ===== */

    html {
        scroll-padding-top: 85px;
    }

    body {
        font-family: 'Inter', Arial, sans-serif;
    }

    body.tl-has-mobile-nav {
        padding-bottom: calc(
            80px + env(safe-area-inset-bottom, 0px)
        ) !important;
    }

    .content-shell,
    .cd-shell,
    .pf-shell,
    .fv-shell,
    .rh-shell {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* ===== HEADER ===== */

    .topbar {
        background: #0b1610 !important;
        border-bottom: 1px solid #294638 !important;
        position: sticky !important;
        top: 0;
        z-index: 1000;
    }

    .topbar .nav-shell {
        min-height: 64px;
        padding: 10px 16px !important;
        gap: 10px;
    }

    .desktop-nav {
        display: none !important;
    }

    .topbar .tl-account-admin {
        display: none !important;
    }

    .nav-right {
        gap: 7px;
    }

    .topbar .tl-account-login {
        background: #14271c !important;
        border: 1px solid #294638 !important;
        color: #e5f2ea !important;
    }

    .topbar .tl-account-register {
        background: #00c853 !important;
        color: #07150c !important;
    }

    /* ===== HERO BANNER ===== */

    .tl-hero {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 12px auto 18px !important;
        border-radius: 10px;
        background: #06130d !important;
    }

    .tl-hero-slide.tl-hero-fallback {
        aspect-ratio: 3 / 1 !important;
        min-height: 0 !important;
        background-size: contain !important;
        background-position: center !important;
    }

    .tl-hero-fallback .tl-hero-content {
        min-height: 0 !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .tl-hero-fallback .tl-hero-cta {
        left: 6%;
        top: 68.5%;
        width: 14%;
        height: 10.5%;
    }

    /* ===== SEARCH ===== */

    .catalog-tools {
        margin: 8px auto 20px !important;
        padding-top: 0 !important;
    }

    .comic-search-form {
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px !important;
    }

    .comic-search-box {
        min-height: 46px;
        background: #11251b !important;
        border: 1px solid #294638 !important;
        border-radius: 9px !important;
    }

    .comic-search-box input {
        min-width: 0;
        font-size: 16px !important;
        color: #f5f7f6 !important;
    }

    .comic-search-box button {
        flex-shrink: 0;
        padding: 12px 18px;
        background: #00c853 !important;
        color: #07150c !important;
    }

    /* ===== CATEGORY FILTER ===== */

    .catalog-category-filter {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        gap: 7px !important;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .catalog-category-filter::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter-pill,
    .category-tab,
    .feed-tab {
        flex-shrink: 0;
        white-space: nowrap;
        border-radius: 30px;
        background: #14271c !important;
        color: #b9ccbf !important;
        border: 1px solid #294638 !important;
    }

    .catalog-filter-pill.active,
    .category-tab.active,
    .feed-tab.active {
        background: #00c853 !important;
        color: #07150c !important;
        border-color: #00c853 !important;
    }

    .catalog-sort {
        margin-top: 10px;
        margin-bottom: 12px !important;
    }

    /* ===== HOMEPAGE CATALOG ===== */

    .tl-showcase {
        margin-top: 20px !important;
        margin-bottom: 28px !important;
    }

    .tl-showcase-heading {
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 15px !important;
    }

    .tl-showcase-heading h2 {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .tl-section-more {
        flex-shrink: 0;
        font-size: 10px !important;
        padding: 8px 10px !important;
    }

    .tl-showcase-grid,
    .latest-grid,
    .search-result-grid {
        display: grid !important;
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
        gap: 18px 9px !important;
    }

    .tl-showcase-card {
        min-width: 0;
    }

    .tl-showcase-card[hidden] {
        display: none !important;
    }

    .tl-showcase-cover {
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 6px !important;
    }

    .tl-showcase-title,
    .comic-card .comic-title {
        font-size: 12px !important;
        line-height: 1.5;
        color: #f5f7f6 !important;
    }

    .tl-showcase-genre,
    .tl-showcase-status,
    .comic-card .comic-genre {
        font-size: 10px !important;
        line-height: 1.5;
    }

    /* ===== COMIC DETAIL ===== */

    .cd-hero-grid {
        display: grid;
        grid-template-columns:
            110px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .cd-hero-grid > div:nth-child(2) {
        display: contents;
    }

    .cd-cover-wrap {
        grid-column: 1;
        grid-row: 1 / 5;
        width: 100%;
        max-width: 110px !important;
        margin: 0 !important;
    }

    .cd-kicker,
    .cd-title,
    .cd-author,
    .cd-tags {
        grid-column: 2;
        min-width: 0;
    }

    .cd-title {
        font-size: 23px !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .cd-description,
    .cd-stats,
    .cd-actions,
    .cd-feedback,
    .cd-source-credit {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .cd-stats {
        grid-row: 5;
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

    .cd-actions {
        grid-row: 6;
        gap: 7px;
    }

    .cd-description {
        grid-row: 7;
        font-size: 13px !important;
        line-height: 1.85;
        margin-bottom: 5px !important;
    }

    .cd-source-credit {
        grid-row: 8;
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .cd-feedback {
        grid-row: 9;
    }

    .cd-actions .cd-btn {
        min-height: 44px;
    }

    .cd-actions .cd-primary {
        flex: 1 1 100%;
    }

    .cd-body {
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    .cd-body > * {
        min-width: 0;
    }

    .cd-episode-row {
        grid-template-columns:
            76px minmax(0, 1fr) 12px !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .cd-episode-thumb {
        width: 76px !important;
        height: 60px !important;
    }

    .cd-episode-date {
        display: none;
    }

    .cd-side {
        grid-template-columns: 1fr !important;
    }

    /* ===== COMMUNITY ===== */

    .cm-rating-summary {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }

    .cm-heading,
    .cm-comments-header h3 {
        font-size: 18px !important;
    }

    .cm-star {
        min-width: 36px;
        min-height: 44px;
    }

    .cm-textarea,
    .cd-search,
    .auth-input {
        font-size: 16px !important;
    }

    /* ===== ACCOUNT ===== */

    .pf-columns,
    .fv-grid,
    .rh-grid {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .pf-card,
    .fv-card,
    .rh-card {
        min-width: 0;
    }

    .pf-info strong {
        overflow-wrap: anywhere;
    }

    .auth-header-inner {
        padding: 12px 16px !important;
    }

    /* ===== BOTTOM MOBILE NAVIGATION ===== */

    .tl-mobile-nav {
        display: grid !important;
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;

        width: 100%;
        box-sizing: border-box;

        background: #0b1610 !important;
        border-top: 1px solid #294638 !important;

        padding: 6px 4px calc(
            6px + env(safe-area-inset-bottom, 0px)
        );

        box-shadow: 0 -5px 25px rgba(0,0,0,.25);
    }

    .tl-mobile-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;

        min-height: 50px;
        min-width: 0;

        border-radius: 8px;
        background: transparent !important;
        color: #96a89e !important;

        font-size: 10px;
        font-weight: 600;
        text-decoration: none;
    }

    .tl-mobile-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .tl-mobile-item.active {
        color: #00df68 !important;
        background: rgba(0,200,83,.09) !important;
    }

    .tl-mobile-item.active span {
        font-weight: 700;
    }

    .tl-mobile-item:focus-visible {
        outline: 2px solid #00c853;
        outline-offset: -2px;
    }

    /* ===== FOOTER ===== */

    .footer,
    .auth-footer {
        background: #0b1610 !important;
        color: #96a89e !important;
    }
}

/* SMALL MOBILE DEVICES */

@media (max-width: 360px) {

    .tl-showcase-grid,
    .latest-grid,
    .search-result-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .tl-mobile-item {
        font-size: 9px;
    }

    .tl-mobile-item svg {
        width: 20px;
        height: 20px;
    }

    .cd-hero-grid {
        grid-template-columns:
            90px minmax(0, 1fr) !important;
    }

    .cd-title {
        font-size: 20px !important;
    }

    .cd-stat strong {
        font-size: 16px !important;
    }
}
