/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */
:root {
    /* Colors */
    --primary-blue: #0A2463;     /* Deep Blue for contrast */
    --accent-aqua: #247BA0;      /* Aqua for highlights */
    --accent-cyan: #3E92CC;      /* Light Cyan */
    --bg-dark: #020b1a;          /* Very dark navy */
    --text-main: #f0f8ff;        /* Alice Blue */
    --text-muted: #b0c4de;       /* Light Steel Blue */
    
    /* Member Colors */
    --color-yui: #87CEFA;        /* Light Sky Blue */
    --color-mai: #333333;        /* Dark Charcoal */
    --color-reira: #FFB6C1;      /* Light Pink */
    --color-etsu: #FFA500;       /* Orange */

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: rgba(62, 146, 204, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'Outfit', 'Noto Sans JP', sans-serif;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Background & Three.js Canvas
   ========================================================================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, #0a192f 0%, #020b1a 100%);
}

.rose-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: radial-gradient(var(--glass-glow) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
}

/* ==========================================================================
   Typography & Layout Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(62, 146, 204, 0.5);
}

/* ==========================================================================
   Glassmorphism UI Components
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(2, 11, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.glass-nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(62, 146, 204, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(62, 146, 204, 0.2), rgba(36, 123, 160, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass-btn:hover {
    background: linear-gradient(135deg, rgba(62, 146, 204, 0.4), rgba(36, 123, 160, 0.6));
    border-color: #fff;
    box-shadow: 0 0 20px var(--glass-glow);
    transform: scale(1.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding: 100px 0; /* Add padding for small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-image {
    max-width: 100%;
    max-height: 60vh; /* Prevent image from taking up too much vertical space */
    object-fit: contain;
    width: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(to bottom, #ffffff, #87CEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(135, 206, 250, 0.5));
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   Biography Section
   ========================================================================== */
.bio-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--glass-glow), transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.bio-text {
    position: relative;
    z-index: 1;
}

.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.bio-text p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Members Section
   ========================================================================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.member-card {
    padding: 0; /* Remove padding for header image */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 0;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.member-card:hover::before {
    opacity: 1;
    background: radial-gradient(circle at top right, var(--color), transparent 70%);
}

.member-image {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    transition: transform 0.6s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.placeholder-img {
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.placeholder-text i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.member-info {
    padding: 30px;
    z-index: 1;
    flex-grow: 1;
}

.member-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.member-info h3 span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.part {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.instrument {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.traits {
    list-style: none;
}

.traits li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.traits li i {
    color: var(--accent-cyan);
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Music & Discography Section
   ========================================================================== */
/* ==========================================================================
   Discography Timeline Section
   ========================================================================== */
.discography-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-card {
    padding: 40px 60px;
}

.timeline-list {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-list li {
    margin-bottom: 40px;
    position: relative;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -35px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    border: 2px solid var(--bg-dark);
}

.timeline-date {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.timeline-event {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    padding-top: 0; /* Override padding from glass-card */
}

.youtube-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.youtube-placeholder i {
    font-size: 5rem;
    color: #ff0000;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
}

.youtube-placeholder p {
    font-size: 1.5rem;
    font-weight: 700;
}

.youtube-placeholder span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-cyan);
}

.video-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    margin-top: 20px;
}

/* Custom Scrollbar */
.video-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.video-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.video-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

.video-scroll-track {
    white-space: nowrap;
    padding-bottom: 20px;
    font-size: 0; /* remove spaces between inline-blocks */
}

.video-thumb-card {
    display: inline-flex;
    flex-direction: column;
    padding: 15px !important; /* override glass-card padding */
    width: 280px;
    margin-right: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-fast);
    white-space: normal; /* reset for text inside */
    font-size: 1rem; /* reset font-size */
    vertical-align: top;
    box-sizing: border-box;
}

.video-thumb-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-thumb-card p {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-thumb-card:hover {
    box-shadow: 0 0 15px var(--glass-glow);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* ==========================================================================
   Social Links Section
   ========================================================================== */
.twitter-embed-container {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    position: relative;
}

.twitter-embed-container .glass-card {
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box;
    min-width: 250px; /* Prevent shrinking too far */
}

/* Force the iframe to fill the container instead of collapsing */
.twitter-embed-container iframe,
.twitter-embed-container .twitter-timeline {
    width: 100% !important;
    max-width: 100% !important;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-link {
    min-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 40px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--glass-border);
}

footer .logo {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations & Interactivity
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Set data-color property for hover effects on member cards */
.member-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    /* removed old .music-grid rules */
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 11, 26, 0.95);
        backdrop-filter: blur(12px);
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .social-link {
        width: 100%;
    }
}
/* ==========================================================================
   Streaming Section
   ========================================================================== */
.streaming-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.streaming-category-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-cyan);
}

.streaming-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.streaming-card {
    display: flex;
    align-items: center;
    padding: 15px !important;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.streaming-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(62, 146, 204, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.streaming-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.streaming-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streaming-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.streaming-info h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.streaming-info small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.streaming-links {
    display: flex;
    gap: 10px;
}

.streaming-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.streaming-btn:hover {
    transform: scale(1.1);
}

.streaming-btn.apple {
    background: linear-gradient(135deg, #fa243c, #fb5c74);
    box-shadow: 0 2px 8px rgba(250, 36, 60, 0.4);
}

.streaming-btn.spotify {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
}
/* ==========================================================================
   Streaming Embed Section
   ========================================================================== */
.streaming-embed-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.streaming-embed-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.embed-card {
    display: flex;
    flex-direction: column;
    padding: 20px !important;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.embed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(62, 146, 204, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.embed-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.embed-info {
    flex-grow: 1;
}

.embed-info h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.embed-info small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.embed-links {
    display: flex;
    gap: 10px;
}

.embed-players {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
/* ==========================================================================
   Streaming Embed Section (Minimal)
   ========================================================================== */
.streaming-embed-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.streaming-embed-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.embed-card {
    display: flex;
    flex-direction: column;
    padding: 20px !important;
    gap: 15px;
    background: rgba(2, 11, 26, 0.4); /* Make background slightly darker to merge with page */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border instead of white */
    box-shadow: none; /* Remove default glass card shadow */
    transition: transform 0.3s ease;
}

.embed-card:hover {
    transform: translateY(-3px);
    border-color: rgba(62, 146, 204, 0.3);
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none; /* Remove line under header */
    padding-bottom: 0;
}

.embed-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    border: none; /* explicitly remove any borders */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4); /* Softer shadow */
}

.embed-info {
    flex-grow: 1;
}

.embed-info h5 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.embed-info small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* Container for small players */
.embed-players-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.player-wrapper-compact {
    position: relative;
    border-radius: 8px; /* smaller rounding */
    overflow: hidden;
    background: transparent;
    height: 60px; /* Force small height */
    width: 100%;
    max-width: 150px;
}

/* Specific player overrides to force compact view */
.player-wrapper-compact iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ==========================================================================
   Dynamic Streaming Player Section
   ========================================================================== */
.dynamic-player-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

/* --- Main Players Area --- */
.main-players-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: rgba(2, 11, 26, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .main-players-container {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
}

.main-player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-player-wrapper h4 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-player-wrapper.apple h4 i { color: #fff; font-size: 1.4rem; }
.main-player-wrapper.spotify h4 i { color: #1DB954; font-size: 1.4rem; }

.player-frame-container {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

.player-frame-container.loading {
    opacity: 0.5;
}

.player-frame-container iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Specific heights depending on platform embedded player default sizes to look good */
.player-frame-container.apple iframe { height: 150px; }
.player-frame-container.spotify iframe { height: 152px; }

/* --- Thumbnail Grid Area --- */
.song-thumbnails-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.thumbnail-category {
    background: rgba(2, 11, 26, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.thumbnail-category h5 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
}

@media (max-width: 600px) {
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
}

.thumbnail-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

@media (max-width: 600px) {
    .thumbnail-item { width: 80px; }
}

.thumbnail-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid transparent; /* Prepare for active state */
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    width: 100%;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
}

.thumbnail-item:hover img {
    box-shadow: 0 8px 15px rgba(62, 146, 204, 0.4);
}

.thumbnail-item:hover span {
    color: #fff;
}

/* Active State */
.thumbnail-item.active {
    transform: translateY(-2px);
}

.thumbnail-item.active img {
    border-color: #3e92cc; /* Highlight border */
    box-shadow: 0 0 20px rgba(62, 146, 204, 0.6);
}

.thumbnail-item.active span {
    color: #3e92cc;
    font-weight: bold;
}
/* Image zoom fix for Apple Music padded covers */
.thumbnail-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.thumbnail-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes sure it fills */
    transform: scale(1.55); /* Zoom in to crop out the white borders from Apple Music files */
    transition: transform 0.3s ease;
    display: block;
}

.thumbnail-item:hover .thumbnail-image-wrapper {
    box-shadow: 0 8px 15px rgba(62, 146, 204, 0.4);
    transform: translateY(-5px);
}

.thumbnail-item:hover img {
    transform: scale(1.6); /* Slight zoom on hover along with the crop zoom */
}

/* Active State */
.thumbnail-item.active .thumbnail-image-wrapper {
    border-color: #3e92cc;
    box-shadow: 0 0 20px rgba(62, 146, 204, 0.6);
    transform: translateY(-2px);
}

.thumbnail-item.active img {
    transform: scale(1.6);
}

/* Hide legacy counter in modern mode */
.legacy-counter { 
    display: none; 
}

/* --- AI Review Section --- */
.review-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.review-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--accent-cyan);
}

.required {
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.review-form input[type="text"],
.review-form input[type="url"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form input[type="url"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(62, 146, 204, 0.3);
}

.file-upload-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.file-help {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 10px;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: rgba(255,255,255,0.5);
}

.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.form-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.form-submit-area {
    text-align: center;
    margin-top: 30px;
}

.error-message {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 71, 87, 0.2);
    border-left: 4px solid #ff4757;
    color: #ffcccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Review Result */
.review-result {
    padding: 30px;
    background: rgba(10, 20, 35, 0.8);
    border: 1px solid rgba(62, 146, 204, 0.4);
    box-shadow: 0 0 30px rgba(62, 146, 204, 0.2);
}

.review-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--accent-cyan);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(62, 146, 204, 0.3);
    border-top: 5px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat Bubbles */
.review-chat-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.chat-message {
    display: flex;
    gap: 15px;
    animation: fadeInSlideUp 0.5s ease forwards;
}

.chat-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.chat-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.chat-name {
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.chat-bubble {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 18px;
    position: relative;
    max-width: 80%;
    line-height: 1.6;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(255,255,255,0.1) transparent transparent;
}

/* Member specific colors */
.speaker-yui .chat-avatar img { border-color: rgba(135, 206, 250, 0.8); }
.speaker-yui .chat-name { color: #87cefa; }
.speaker-yui .chat-bubble { background: rgba(135, 206, 250, 0.15); border-top-left-radius: 4px; }
.speaker-yui .chat-bubble::before { border-color: transparent rgba(135, 206, 250, 0.15) transparent transparent; }

.speaker-mai .chat-avatar img { border-color: rgba(180, 180, 180, 0.8); }
.speaker-mai .chat-name { color: #d0d0d0; }
.speaker-mai .chat-bubble { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.1); border-top-left-radius: 4px; }
.speaker-mai .chat-bubble::before { border-color: transparent rgba(0, 0, 0, 0.5) transparent transparent; }

.speaker-reira .chat-avatar img { border-color: rgba(255, 182, 193, 0.8); }
.speaker-reira .chat-name { color: #ffb6c1; }
.speaker-reira .chat-bubble { background: rgba(255, 182, 193, 0.15); border-top-left-radius: 4px; }
.speaker-reira .chat-bubble::before { border-color: transparent rgba(255, 182, 193, 0.15) transparent transparent; }

.speaker-etsu .chat-avatar img { border-color: rgba(255, 165, 0, 0.8); }
.speaker-etsu .chat-name { color: #ffa500; }
.speaker-etsu .chat-bubble { background: rgba(255, 165, 0, 0.15); border-top-left-radius: 4px; }
.speaker-etsu .chat-bubble::before { border-color: transparent rgba(255, 165, 0, 0.15) transparent transparent; }

.chat-text-only {
    padding: 10px 20px;
    font-style: italic;
    color: var(--text-muted);
}

.review-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.share-btn {
    background: #1DA1F2;
    color: white !important;
}

.share-btn:hover {
    background: #1a91da;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.5);
}

/* ==========================================================================
   Mutual Links Section
   ========================================================================== */
.mutual-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mutual-link-card {
    padding: 20px !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mutual-link-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mutual-link-card h4 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mutual-link-card h4 a:hover {
    color: var(--accent-cyan);
}

.mutual-link-card .admin-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mutual-link-card .admin-info a {
    color: var(--accent-cyan);
    text-decoration: none;
    margin-left: 5px;
}

.mutual-link-card .admin-info a:hover {
    text-decoration: underline;
}
