/* ============================================
   KAGE STUDIO - Clean Black & White Design
   ============================================ */

:root {
    --black: #000000;
    --black-soft: #0a0a0a;
    --grey-dark: #111111;
    --grey-mid: #1a1a1a;
    --grey-light: #2a2a2a;
    --grey-border: #333333;
    --white: #ffffff;
    --white-soft: #f5f5f5;
    --white-muted: #999999;
    --white-dim: #666666;
    --green: #00ff88;
    
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--grey-border);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-kanji {
    font-size: 24px;
    font-weight: 300;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

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

.nav-link {
    color: var(--white-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.x-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white-muted);
    transition: all 0.3s ease;
}

.x-link:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: scale(1.1);
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--white-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   HERO (Main Page)
   ============================================ */

.hero {
    padding: 120px 40px 80px;
    max-width: 800px;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--white-muted);
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--white-muted);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--white-soft);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 80px 40px;
    border-top: 1px solid var(--grey-border);
}

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

.section-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.section-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--white);
}

.section-desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--white-muted);
}

/* ============================================
   FEATURED CARD
   ============================================ */

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-decoration: none;
    color: var(--white);
    background: var(--grey-dark);
    border: 1px solid var(--grey-border);
    overflow: hidden;
    transition: border-color 0.3s;
}

.featured-card:hover {
    border-color: var(--white-dim);
}

.featured-image {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.5));
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-tagline {
    font-size: 16px;
    color: var(--white-muted);
    margin-bottom: 24px;
}

.featured-stats {
    display: flex;
    gap: 24px;
}

.featured-stats .stat {
    font-size: 13px;
    color: var(--white-dim);
}

.featured-stats .stat strong {
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--grey-border);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
    border-color: var(--white-dim);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   ANIME PAGE - HERO
   ============================================ */

.anime-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.anime-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.anime-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--black) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
}

.anime-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
    max-width: 800px;
}

.anime-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.anime-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.anime-tagline {
    font-size: 20px;
    color: var(--white-muted);
    margin-bottom: 24px;
}

.anime-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    padding: 6px 12px;
    background: var(--grey-mid);
    border: 1px solid var(--grey-border);
    font-size: 12px;
    color: var(--white-muted);
}

/* ============================================
   SYNOPSIS
   ============================================ */

.synopsis-content {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--white-muted);
}

.synopsis-content p {
    margin-bottom: 20px;
}

/* ============================================
   CHARACTERS
   ============================================ */

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.character-card {
    background: var(--grey-dark);
    border: 1px solid var(--grey-border);
    overflow: hidden;
}

.character-card.protagonist {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.character-image {
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
}

.character-card.protagonist .character-image {
    aspect-ratio: auto;
}

.character-info {
    padding: 24px;
}

.character-role {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white-dim);
}

.character-name {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.character-title {
    font-size: 13px;
    color: var(--white-muted);
    display: block;
    margin-bottom: 16px;
}

.character-details {
    margin-bottom: 16px;
    font-size: 13px;
}

.character-details p {
    margin-bottom: 4px;
    color: var(--white-muted);
}

.character-details strong {
    color: var(--white);
}

.character-desc {
    font-size: 14px;
    color: var(--white-muted);
    line-height: 1.6;
}

/* ============================================
   EPISODES
   ============================================ */

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.episode-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: var(--grey-dark);
    border: 1px solid var(--grey-border);
    overflow: hidden;
}

.episode-image {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.episode-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.episode-card.locked .episode-image {
    background: var(--grey-mid);
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--white-muted);
}

.episode-content {
    padding: 32px 32px 32px 0;
}

.episode-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.episode-arc {
    font-size: 12px;
    color: var(--white-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 20px;
}

.episode-text {
    font-size: 15px;
    color: var(--white-muted);
    line-height: 1.8;
}

.episode-text p {
    margin-bottom: 16px;
}

.episode-cliffhanger {
    padding: 16px;
    background: var(--grey-mid);
    border-left: 2px solid var(--white);
    margin-top: 20px;
}

/* ============================================
   WORLD
   ============================================ */

.world-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.world-card {
    padding: 32px;
    background: var(--grey-dark);
    border: 1px solid var(--grey-border);
}

.world-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.world-card p {
    font-size: 14px;
    color: var(--white-muted);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    margin-top: auto;
    border-top: 1px solid var(--grey-border);
    padding: 32px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.footer-info {
    font-size: 13px;
    color: var(--white-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--white-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .character-card.protagonist {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
    }
    
    .episode-image {
        aspect-ratio: 16/9;
    }
    
    .episode-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .hero, .section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .anime-hero-content {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
