*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-card: #1e293b;
    --bg-card-hover: #263449;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #7c3aed;
    --accent-secondary: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%);
    --border-color: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

h1, h2, h3, h4, h5 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header.sticky {
    background: rgba(11, 17, 32, 0.97);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.logo-text {
    letter-spacing: -0.3px;
}

.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav.desktop {
    display: flex;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    padding: 10px 38px 10px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    outline: none;
    width: 260px;
    font-size: 0.9rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.kbd-k {
    position: absolute;
    right: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    pointer-events: none;
}

.btn-signin {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.theme-toggle {
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

/* =========================================
   HERO SECTION (index.html)
   ========================================= */
.hero {
    padding: 40px 0;
}

.hero-slider {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-card {
    background-position: center;
    background-size: cover;
    border-radius: 24px;
    min-height: 420px;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
}

.hero-card.active {
    opacity: 1;
    display: flex;
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.85) 0%, rgba(124, 58, 237, 0.6) 55%, rgba(14, 165, 233, 0.7) 100%);
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.badge-premiere {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    font-family: 'Rubik', sans-serif;
    letter-spacing: -1px;
    color: white;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(241, 245, 249, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(241, 245, 249, 0.82);
    margin-bottom: 32px;
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
}

.dot {
    margin: 0 6px;
    color: var(--text-muted);
    font-weight: 800;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-ghost {
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats {
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   GENERAL SECTION
   ========================================= */
.section {
    padding: 48px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.4) 0%, transparent 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip:hover {
    color: var(--text-primary);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.chip.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
    border-color: transparent;
}

/* =========================================
   ANIME GRID & CARDS
   ========================================= */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.anime-card {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.anime-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.2);
}

.anime-cover {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.anime-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.badge-ep {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 3;
    color: white;
}

.badge-hd {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(124, 58, 237, 0.9));
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    z-index: 3;
    color: white;
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.3px;
}

.badge-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--warning);
    z-index: 3;
}

.anime-info {
    padding: 14px 16px 18px;
}

.anime-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    font-family: 'Rubik', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    color: var(--text-primary);
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.rate {
    color: var(--warning);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.genre {
    color: var(--text-muted);
    font-weight: 500;
}

.anime-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
}

/* =========================================
   BIG ANIME GRID (projects.html)
   ========================================= */
.anime-grid-big {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.anime-card-big {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.anime-card-big:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.anime-card-big .anime-cover {
    aspect-ratio: 2 / 3;
}

.anime-card-big .anime-info {
    padding: 18px;
}

.anime-card-big .anime-info h4 {
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.tag.highlight {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
    border-color: rgba(124, 58, 237, 0.3);
}

.synopsis {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
}

.card-footer .episodes {
    color: var(--accent-secondary);
    font-weight: 700;
}

.card-footer .year {
    color: var(--text-muted);
}

/* =========================================
   SCHEDULE - COMPACT GRID (index.html)
   ========================================= */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.schedule-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.schedule-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.schedule-card.active {
    border: 2px solid var(--warning);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.schedule-card .day {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 4px;
}

.schedule-card.active .day {
    color: var(--warning);
}

.day-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: 'Rubik', sans-serif;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.schedule-list .time {
    color: var(--accent-secondary);
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    flex-shrink: 0;
    min-width: 50px;
}

.schedule-list .time.current {
    color: var(--warning);
}

.ep-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
}

.ep-tag.new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 165, 233, 0.2));
    color: var(--success);
}

/* =========================================
   SCHEDULE FULL PAGE - schedule.html
   ========================================= */
.page-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 50px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.page-breadcrumbs {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-breadcrumbs a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.page-breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
    line-height: 1.6;
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.content {
    padding: 40px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 0;
}

/* FILTERS PANEL */
.filters-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rubik', sans-serif;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
    font-family: 'Rubik', sans-serif;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.93rem;
    color: var(--text-primary);
    transition: color 0.15s;
}

.checkbox-item:hover {
    color: var(--accent-secondary);
}

.checkbox-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-item .count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
    font-weight: 600;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.93rem;
}

.filter-checkbox input {
    accent-color: var(--accent-primary);
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.93rem;
}

.radio-btn input {
    accent-color: var(--accent-primary);
}

.sort-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:focus {
    border-color: var(--accent-primary);
}

.sort-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.year-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.year-select:focus {
    border-color: var(--accent-primary);
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-wrap input[type='range'] {
    flex: 1;
    accent-color: var(--accent-primary);
}

.range-wrap .val {
    font-weight: 700;
    color: var(--accent-secondary);
    min-width: 36px;
    text-align: right;
}

.apply-filters {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.apply-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

/* SORT BAR */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sort-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.sort-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    min-width: 44px;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.pagination button.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =========================================
   FULL SCHEDULE PAGE
   ========================================= */
.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes blink {
    50% { opacity: 0.4; }
}

.week-tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 36px;
}

.day-tab {
    padding: 16px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}

.day-tab:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.day-tab .tab-day {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.day-tab .tab-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 4px;
    font-family: 'Rubik', sans-serif;
}

.day-tab .tab-count {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-top: 4px;
    font-weight: 700;
}

.day-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.day-tab.active .tab-day,
.day-tab.active .tab-count {
    color: rgba(255, 255, 255, 0.85);
}

.day-tab.active .tab-name {
    color: white;
}

.day-tab.today {
    position: relative;
    border-color: var(--warning);
}

.today-mark {
    position: absolute;
    top: -10px;
    right: -8px;
    background: var(--warning);
    color: #1a1a1a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

.day-section {
    margin-bottom: 48px;
}

.day-section.highlight-pulse {
    animation: pulseBorder 1.2s ease;
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25); }
}

.day-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.day-badge {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.day-badge .short {
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Rubik', sans-serif;
    color: var(--accent-secondary);
}

.day-badge .count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 2px;
}

.day-heading h2 {
    font-size: 1.6rem;
    font-family: 'Rubik', sans-serif;
}

.today-tag {
    padding: 4px 12px;
    background: var(--warning);
    color: #1a1a1a;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 8px;
    font-family: 'Rubik', sans-serif;
    vertical-align: middle;
}

.today-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    font-weight: 700;
    font-size: 0.75rem;
    font-family: 'Rubik', sans-serif;
}

.schedule-list-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.2s;
}

.schedule-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.schedule-item.today-item {
    border-color: var(--warning);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sched-time {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px 0;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.sched-time.current {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.sched-cover {
    width: 64px;
    height: 90px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sched-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
}

.si-info {
    flex: 1;
    min-width: 0;
}

.sched-main {
    min-width: 0;
}

.si-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'Rubik', sans-serif;
}

.sched-title {
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 6px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.sched-title .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: blink 1.2s infinite;
}

.si-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sched-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.sched-meta .ep-num {
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: 'Rubik', sans-serif;
}

.sched-meta .ep-num.next-ep {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.sched-right {
    text-align: right;
    min-width: 140px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
}

.status-airing {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-announce {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-secondary);
}

.status-finished {
    background: rgba(100, 116, 139, 0.25);
    color: var(--text-muted);
}

.sched-rate {
    color: var(--warning);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Rubik', sans-serif;
}

.sched-genre {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Schedule rows and cards - alternative layout */
.schedule-day {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.schedule-day.today {
    border: 2px solid var(--warning);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
    animation: pulse 4s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.schedule-day .day-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-row {
    padding: 12px;
    border-radius: 10px;
    background: var(--bg-secondary);
    margin-bottom: 10px;
    transition: all 0.2s;
}

.schedule-row:last-child {
    margin-bottom: 0;
}

.schedule-row:hover {
    background: var(--bg-card-hover);
    transform: translateX(3px);
}

/* =========================================
   MANGA - index.html layout
   ========================================= */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.manga-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.28s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.manga-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.manga-cover {
    aspect-ratio: 2 / 3;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.manga-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}

.manga-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: var(--accent-primary);
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.3px;
    z-index: 3;
}

.manga-type.manhwa {
    background: #ec4899;
}

.manga-type.manhua {
    background: #f97316;
}

.manga-type.ranobe {
    background: #14b8a6;
}

.manga-info {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manga-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: 'Rubik', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    color: var(--text-primary);
}

.manga-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-muted);
}

.progress {
    margin-top: auto;
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress > div {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.manga-progress {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rubik', sans-serif;
}

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* =========================================
   MANGA - full page layout
   ========================================= */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.stat-pill {
    padding: 18px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
}

.stat-pill:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-pill .num {
    font-size: 1.7rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-pill .lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

.type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 0.92rem;
}

.type-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.type-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.type-tab .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin: 0;
}

/* MANGA - HORIZONTAL CARD */
.manga-grid .manga-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 18px;
    align-items: stretch;
}

.manga-grid .manga-cover {
    width: 96px;
    height: 132px;
    aspect-ratio: auto;
    border-radius: 9px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.manga-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.manga-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    color: var(--text-primary);
}

.manga-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.manga-type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3px;
    font-family: 'Rubik', sans-serif;
}

.type-manga { background: #ef4444; }
.type-manhwa { background: #f59e0b; color: #1a1a1a; }
.type-manhua { background: #0ea5e9; }
.type-ranobe { background: #8b5cf6; }

.manga-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chapters {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.read-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Rubik', sans-serif;
}

.read-status.reading {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-secondary);
}

.read-status.planned {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.read-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin: 0;
}

.manga-footer {
    margin-top: auto;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* =========================================
   FEATURES GRID (index.html)
   ========================================= */
.features {
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   SUBSCRIBE SECTION (index.html)
   ========================================= */
.subscribe-section {
    padding: 48px 0;
}

.subscribe-box {
    border-radius: 24px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.13) 0%, rgba(14, 165, 233, 0.13) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.subscribe {
    border-radius: 24px;
    padding: 40px 44px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.subscribe-left {
    max-width: 520px;
    flex: 1;
}

.subscribe-left h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
    line-height: 1.3;
}

.subscribe-left p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    flex: 1;
    min-width: 280px;
    position: relative;
    flex-wrap: wrap;
}

.subscribe-input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.subscribe-input::placeholder {
    color: var(--text-muted);
}

.subscribe-btn {
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.subscribe-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeInUp 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 340px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4,
.footer h5,
.footer-inner h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-list a:hover {
    color: var(--accent-secondary);
}

.footer-inner ul {
    list-style: none;
}

.footer-inner ul li {
    margin-bottom: 10px;
}

.footer-inner ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-inner ul li a:hover {
    color: var(--accent-secondary);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 14px;
    line-height: 1.6;
    max-width: 340px;
}

.mb {
    margin-bottom: 12px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.social-item {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    padding: 0;
}

.social-item:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.socials a {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s;
    font-family: 'Rubik', sans-serif;
}

.socials a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ping {
    color: var(--success);
    font-weight: 700;
    display: inline-block;
    font-family: 'Rubik', sans-serif;
}

.footer-bottom .ping {
    font-size: 0.9rem;
}

/* =========================================
   TEXT PAGES (about, tos, privacy, copyright)
   ========================================= */
.text-page {
    padding: 40px 0 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.text-block {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    padding: 44px;
}

.text-block h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Rubik', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 8px;
}

.text-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.text-block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.text-block h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.text-block h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.text-block h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.text-block p {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.text-block p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.text-block a {
    color: var(--accent-secondary);
    font-weight: 600;
    text-decoration: none;
}

.text-block a:hover {
    text-decoration: underline;
}

.text-block ul,
.text-block ol {
    color: var(--text-secondary);
    margin: 14px 0 14px 24px;
}

.text-block ul {
    list-style: disc;
}

.text-block ol {
    list-style: decimal;
}

.text-block li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-block ul li ul,
.text-block ol li ul,
.text-block ul li ol,
.text-block ol li ol {
    margin: 8px 0 8px 24px;
}

.text-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.text-block th,
.text-block td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.text-block th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
}

.text-block td {
    color: var(--text-secondary);
}

/* about page - full */
.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.doc-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.doc-nav h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-family: 'Rubik', sans-serif;
}

.doc-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
    margin-bottom: 3px;
}

.doc-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.doc-nav a.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
}

.doc-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 44px;
}

.doc-body section,
.doc-body .chapter,
.doc-body .sec {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.doc-body section:last-child,
.doc-body .chapter:last-child,
.doc-body .sec:last-child {
    margin-bottom: 0;
}

.doc-body h2 {
    font-size: 1.55rem;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.doc-body .chapter h2 {
    display: inline-block;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
}

.doc-body .sec h2 {
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), transparent);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    border-bottom: none;
    margin-bottom: 14px;
}

.doc-body .sec h2 .n {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 32px;
}

.doc-body h3 {
    font-size: 1.1rem;
    margin: 22px 0 10px;
    color: var(--text-primary);
    font-family: 'Rubik', sans-serif;
}

.doc-body h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.doc-body p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.96rem;
    line-height: 1.7;
    text-align: justify;
}

.doc-body p strong {
    color: var(--text-primary);
}

.doc-body ul,
.doc-body ol {
    color: var(--text-secondary);
    margin: 12px 0 12px 24px;
}

.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }

.doc-body li {
    margin-bottom: 7px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.about-lead {
    font-size: 1.12rem !important;
    line-height: 1.8 !important;
    padding: 20px 24px !important;
    background: rgba(124, 58, 237, 0.08) !important;
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 10px 10px 0;
    color: var(--text-primary) !important;
    text-align: left !important;
}

/* stats box + grid (about) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-box .num {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Rubik', sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-box .lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.principle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.2s;
}

.principle:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.1);
}

.principle .ico {
    font-size: 2rem;
    margin-bottom: 10px;
}

.principle h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
}

.principle p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: left !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.member {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.member:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Rubik', sans-serif;
}

.member .name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.member .role {
    font-size: 0.82rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-top: 4px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.contact-card .ico {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-family: 'Rubik', sans-serif;
}

.contact-card a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    word-break: break-all;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card .hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: left !important;
}

/* NOTICE BOXES */
.notice-box {
    padding: 20px 24px;
    background: rgba(239, 68, 68, 0.08);
    border-left: 5px solid var(--danger);
    border-radius: 0 10px 10px 0;
    margin: 18px 0;
}

.notice-box.ok {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: var(--success);
}

.notice-box.info {
    background: rgba(14, 165, 233, 0.08);
    border-left-color: var(--accent-secondary);
}

.notice-box p {
    margin: 0;
    text-align: left !important;
    color: var(--text-secondary) !important;
}

.notice {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 14px 0;
    font-size: 0.9rem;
}

.notice.warn {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--warning);
    color: var(--text-secondary);
}

.notice.danger {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--danger);
}

.notice.ok {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid var(--success);
}

.notice.info {
    background: rgba(14, 165, 233, 0.08);
    border-left: 4px solid var(--accent-secondary);
}

.highlight-box {
    padding: 18px 22px;
    background: rgba(124, 58, 237, 0.08);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 10px 10px 0;
    margin: 16px 0;
}

.highlight-box.danger {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: var(--danger);
}

.highlight-box.ok {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: var(--success);
}

.ch-num {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    margin-right: 10px;
    vertical-align: middle;
    text-align: center;
    line-height: 32px;
    font-family: 'Rubik', sans-serif;
}

.legal-info {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px dashed var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.legal-info p {
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 0.88rem;
}

/* CONTACT FORMS */
.contact-form {
    margin-top: 20px;
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-family: 'Rubik', sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.form-full {
    grid-column: 1 / -1;
}

.field {
    width: 100%;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Rubik', sans-serif;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
}

.field input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    display: inline-block;
}

.submit-btn {
    margin-top: 20px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
}

/* FORM GROUP - simple */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    min-height: 160px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.btn-submit {
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
}

/* CONTACT MAIL BUTTON */
.contact-mail {
    display: inline-block;
    padding: 10px 22px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    margin: 6px 0;
    transition: transform 0.2s;
}

.contact-mail:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

/* TIMELINE */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.step {
    background: var(--bg-secondary);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s;
}

.step:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.step .num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
}

.step h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-family: 'Rubik', sans-serif;
    color: var(--text-primary);
}

.step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left !important;
    margin-bottom: 0 !important;
}

/* TOC */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 32px;
}

.toc h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-family: 'Rubik', sans-serif;
}

.toc ol {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
    list-style: decimal;
}

.toc li {
    margin-bottom: 7px;
    break-inside: avoid;
}

.toc a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* Light Theme */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
}

body.light-theme .header {
    background: rgba(248, 250, 252, 0.97);
}

body.light-theme .hero-card.active {
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.7) 0%, rgba(124, 58, 237, 0.5) 55%, rgba(14, 165, 233, 0.6) 100%);
}

body.light-theme .anime-info h4,
body.light-theme .manga-info h4,
body.light-theme .manga-title,
body.light-theme .doc-body h2,
body.light-theme .doc-body h3,
body.light-theme .text-block h2,
body.light-theme .text-block h3 {
    color: var(--text-primary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .anime-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .anime-grid-big {
        grid-template-columns: repeat(3, 1fr);
    }
    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 32px;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 32px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .subscribe-box,
    .subscribe {
        padding: 36px;
    }
    .week-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
    .schedule-item {
        grid-template-columns: 80px 64px 1fr;
        gap: 14px;
    }
    .sched-right {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed var(--border-color);
        padding-top: 12px;
        text-align: left;
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }
    .filters-panel {
        position: static;
    }
    .doc-layout {
        grid-template-columns: 1fr;
    }
    .doc-nav {
        position: static;
    }
    .nav.desktop {
        display: none !important;
    }
    .anime-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .anime-grid-big {
        grid-template-columns: repeat(2, 1fr);
    }
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .toc ol {
        columns: 1;
    }
    .page-title {
        font-size: 2rem;
    }
    .hero-card {
        min-height: 380px;
        padding: 40px;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero {
        padding: 24px 0;
    }
    .section {
        padding: 36px 0;
    }
    .subscribe-box,
    .subscribe {
        padding: 28px;
    }
    .subscribe-left h3 {
        font-size: 1.5rem;
    }
    .week-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .sched-time {
        font-size: 1.1rem;
        padding: 8px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }
    .search-wrapper {
        display: none;
    }
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .anime-grid-big {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .manga-grid {
        grid-template-columns: 1fr;
    }
    .manga-grid .manga-card {
        flex-direction: row;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .principles-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .hero {
        padding: 16px 0;
    }
    .hero-card {
        min-height: 360px;
        padding: 28px 20px;
    }
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: -0.3px;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-meta {
        font-size: 0.85rem;
    }
    .btn-primary,
    .btn-ghost {
        padding: 12px 22px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    .section {
        padding: 32px 0;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
    .content {
        padding: 24px 0;
    }
    .page-header {
        padding: 36px 0 28px;
    }
    .text-block {
        padding: 22px;
        border-radius: 14px;
    }
    .text-block h1 {
        font-size: 1.5rem;
    }
    .text-block h2 {
        font-size: 1.25rem;
    }
    .doc-body {
        padding: 22px;
    }
    .contact-form {
        padding: 20px;
    }
    .week-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .schedule-item {
        grid-template-columns: 64px 52px 1fr;
        gap: 12px;
        padding: 12px;
    }
    .sched-cover {
        width: 52px;
        height: 74px;
    }
    .sched-time {
        font-size: 0.95rem;
        padding: 8px 4px;
    }
    .sched-title {
        font-size: 0.9rem;
    }
    .day-heading h2 {
        font-size: 1.25rem;
    }
    .type-tabs {
        margin-bottom: 20px;
    }
    .type-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .subscribe-box,
    .subscribe {
        padding: 22px;
        border-radius: 18px;
        gap: 20px;
    }
    .subscribe-left h3 {
        font-size: 1.25rem;
    }
    .subscribe-form {
        gap: 10px;
    }
    .subscribe-input {
        padding: 12px 14px;
    }
    .subscribe-btn {
        padding: 12px 20px;
    }
    .timeline {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    .stat-pill {
        padding: 14px 12px;
    }
    .stat-pill .num {
        font-size: 1.35rem;
    }
    .pagination button {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .anime-info {
        padding: 12px 12px 16px;
    }
    .anime-info h4 {
        font-size: 0.88rem;
    }
    .btn-signin {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .logo {
        font-size: 1.15rem;
        gap: 8px;
    }
    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .theme-toggle {
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
    }
    .header-right {
        gap: 8px;
    }
    .hero-card {
        min-height: 340px;
        padding: 20px 16px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .hero-cta {
        gap: 8px;
    }
    .btn-primary,
    .btn-ghost {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .manga-grid .manga-card {
        padding: 14px;
        gap: 12px;
    }
    .manga-grid .manga-cover {
        width: 82px;
        height: 114px;
    }
    .manga-title {
        font-size: 0.9rem;
    }
    .stat {
        padding: 18px 14px;
    }
    .stat-num {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .feature {
        padding: 18px;
    }
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    .feature h4 {
        font-size: 1rem;
    }
    .footer-bottom {
        font-size: 0.78rem;
    }
}
