/* soning.stream - Dark Academia Streaming */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

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

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a2e;
    color: #f5f0e8;
    overflow: hidden;
    height: 100vh;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Navigation Panel - Leather Texture */
.nav-panel {
    background: #1a1a2e;
    border-right: 1px solid rgba(232, 184, 75, 0.15);
    height: 100vh;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #e8b84b #1a1a2e;
}

.nav-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 90, 43, 0.04) 2px,
            rgba(139, 90, 43, 0.04) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 8px,
            rgba(139, 90, 43, 0.02) 8px,
            rgba(139, 90, 43, 0.02) 10px
        ),
        linear-gradient(180deg, rgba(101, 67, 33, 0.12) 0%, rgba(101, 67, 33, 0.06) 50%, rgba(101, 67, 33, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.nav-panel-inner {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Logo */
.logo-area {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(232, 184, 75, 0.12);
}

.crystal-logo {
    margin-bottom: 16px;
}

.crystal-icon-logo {
    width: 48px;
    height: 48px;
    animation: crystalPulse 4s ease-in-out infinite;
}

@keyframes crystalPulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.site-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: -0.02em;
}

.title-dot {
    color: #e8b84b;
}

.site-tagline {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Nav Categories */
.category-nav {
    margin-bottom: 32px;
}

.nav-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6c757d;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(232, 184, 75, 0.08);
    color: #f5f0e8;
}

.nav-item.active {
    background: rgba(232, 184, 75, 0.12);
    color: #e8b84b;
    font-weight: 500;
}

.crystal-marker {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-item:hover .crystal-marker {
    transform: rotate(30deg);
}

/* Recent */
.nav-section-recent {
    margin-bottom: 32px;
}

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

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.recent-item:hover {
    color: #f5f0e8;
    background: rgba(74, 144, 217, 0.06);
}

.recent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a90d9;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Nav Footer */
.nav-footer {
    margin-top: auto;
    padding-top: 20px;
}

.nav-footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.2), transparent);
    margin-bottom: 16px;
}

.nav-footer-text {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
    letter-spacing: 0.1em;
}

/* Content Panel */
.content-panel {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a90d9 #1a1a2e;
}

/* Hero Section */
.content-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(232, 184, 75, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(74, 144, 217, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #1a1a2e 0%, #12121f 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(245, 240, 232, 0.008) 1px,
            rgba(245, 240, 232, 0.008) 2px
        );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.crystal-ornament {
    margin-bottom: 32px;
}

.crystal-hero-svg {
    width: 100px;
    height: 100px;
    animation: crystalSpin 20s linear infinite;
}

@keyframes crystalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8b84b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.65);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e8b84b 0%, #d4a43a 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 184, 75, 0.3);
}

/* Content Sections */
.content-section {
    padding: 64px 48px;
    border-top: 1px solid rgba(245, 240, 232, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-crystal {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 184, 75, 0.2), transparent);
    min-width: 40px;
}

/* Stream Cards Grid */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.stream-card {
    background: rgba(245, 240, 232, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 232, 0.06);
    cursor: pointer;
    transition: all 0.35s ease;
}

.stream-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 184, 75, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-visual {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pattern-1 {
    background:
        linear-gradient(135deg, rgba(232, 184, 75, 0.15) 0%, rgba(26, 26, 46, 0.9) 100%),
        repeating-conic-gradient(rgba(232, 184, 75, 0.05) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}

.pattern-2 {
    background:
        linear-gradient(135deg, rgba(74, 144, 217, 0.15) 0%, rgba(26, 26, 46, 0.9) 100%),
        repeating-linear-gradient(45deg, rgba(74, 144, 217, 0.03) 0px, rgba(74, 144, 217, 0.03) 1px, transparent 1px, transparent 12px);
}

.pattern-3 {
    background:
        linear-gradient(135deg, rgba(108, 117, 125, 0.2) 0%, rgba(26, 26, 46, 0.9) 100%),
        radial-gradient(circle at 30% 50%, rgba(232, 184, 75, 0.1) 0%, transparent 50%);
}

.pattern-4 {
    background:
        linear-gradient(135deg, rgba(232, 184, 75, 0.1) 0%, rgba(74, 144, 217, 0.1) 50%, rgba(26, 26, 46, 0.9) 100%);
}

.card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26, 26, 46, 0.85);
    color: #f5f0e8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-body {
    padding: 16px;
}

.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e8b84b;
    font-weight: 600;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0 6px;
    line-height: 1.3;
}

.card-author {
    font-size: 0.825rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.4);
}

.meta-dot {
    color: rgba(245, 240, 232, 0.2);
}

/* Reading List */
.reading-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reading-item {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: rgba(245, 240, 232, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(245, 240, 232, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reading-item:hover {
    border-color: rgba(74, 144, 217, 0.2);
    background: rgba(74, 144, 217, 0.04);
}

.reading-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(232, 184, 75, 0.15);
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.reading-content {
    flex: 1;
}

.reading-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.reading-excerpt {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.7;
    margin-bottom: 14px;
}

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

.reading-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
    border-radius: 4px;
    font-weight: 500;
}

.reading-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: auto;
}

/* Live Section */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8b84b;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 184, 75, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(232, 184, 75, 0); }
}

.live-text {
    font-size: 0.75rem;
    color: #e8b84b;
    font-weight: 500;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.live-card {
    background: rgba(245, 240, 232, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(232, 184, 75, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232, 184, 75, 0.1);
    border-color: rgba(232, 184, 75, 0.25);
}

.live-visual {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.live-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.lp-1 {
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.12) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.lp-2 {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.12) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.lp-3 {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(26, 26, 46, 0.95) 100%);
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e8b84b;
    color: #1a1a2e;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    animation: livePulse 2s ease-in-out infinite;
}

.live-viewers {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.eye-icon {
    width: 14px;
    height: 14px;
}

.live-body {
    padding: 16px;
}

.live-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.live-host {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Playlist Cards */
.playlist-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.playlist-card {
    display: flex;
    align-items: stretch;
    background: rgba(245, 240, 232, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(245, 240, 232, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-card:hover {
    border-color: rgba(232, 184, 75, 0.15);
    background: rgba(245, 240, 232, 0.04);
    transform: translateX(4px);
}

.playlist-accent {
    width: 4px;
    background: linear-gradient(180deg, #e8b84b, rgba(232, 184, 75, 0.3));
    flex-shrink: 0;
}

.playlist-accent.accent-blue {
    background: linear-gradient(180deg, #4a90d9, rgba(74, 144, 217, 0.3));
}

.playlist-info {
    flex: 1;
    padding: 20px 24px;
}

.playlist-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.playlist-desc {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.6;
    margin-bottom: 10px;
}

.playlist-stats {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #6c757d;
}

.playlist-crystal {
    width: 40px;
    height: 40px;
    align-self: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Footer */
.content-footer {
    padding: 60px 48px;
    text-align: center;
    border-top: 1px solid rgba(245, 240, 232, 0.05);
}

.footer-crystals {
    margin-bottom: 24px;
}

.footer-crystal-row {
    width: 200px;
    height: 50px;
    opacity: 0.5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.75rem;
    color: #6c757d;
}

.footer-motto {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.35);
    font-style: italic;
    margin-top: 8px;
}

/* Reveal Animations */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .nav-panel {
        display: none;
    }

    body {
        overflow: auto;
    }

    .content-panel {
        height: auto;
    }

    .content-section {
        padding: 48px 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .reading-item {
        flex-direction: column;
        gap: 12px;
    }

    .reading-number {
        font-size: 1.5rem;
    }
}
