* { box-sizing: border-box; }

body {
    background-image: linear-gradient(rgba(13, 19, 17, 0.85), rgba(23, 36, 30, 0.85)), url('../img/bg.jpg');
    background-size: cover; background-attachment: fixed;
    
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #c4d4cc !important;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

a:link, a:visited { color: #b8cfc5; text-decoration: none; transition: color 0.2s; }
a:hover { color: #7ca38f; }
::selection {
  background: rgba(23, 36, 30, 0.85);
}
#header-radio { 
    display: grid; 
    grid-template-columns: 200px 1fr 340px; 
    gap: 40px; 
    padding: 20px calc(max(40px, 50vw - 800px)); 
    
    background-color: #110e0c; 
    border-bottom: 2px solid #28231f;
    align-items: center; 
    flex-shrink: 0; 
}

#branding { 
    background-color: rgba(24, 21, 18, 0.75); 
    border: 1px solid #28231f; 
    border-radius: 16px; 
    height: 160px;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    text-align: center;
    color: #b8cfc5; 
}

.sansai-logo {
    width: 84px;
    height: 84px; 
    color: #7ca38f; 
    transition: color 0.3s;
}

#branding:hover .sansai-logo {
    color: #b8cfc5;
}

.branding-en {
    font-size: 11px;
    font-weight: 700; 
    color: #b8cfc5; 
    letter-spacing: 5px;
}

.branding-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 700; 
    color: #7ca38f; 
    letter-spacing: 2px;
}

.anim-petal {
    transform-origin: 50px 50px; 
    transform: scale(0) rotate(0deg); 
    opacity: 0;
    transition: transform 0.4s ease-in, opacity 0.3s ease-in;
}

.kamon-center {
    transition: fill 0.3s ease;
}

#branding.is-streaming .kamon-center {
    fill: #ff5555;
}

#branding.is-live .anim-petal {
    transform: scale(1) rotate(var(--end-rot)); 
    opacity: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
    transition-delay: calc(var(--index) * 0.04s);
}



#artwork-container {
    position: relative; 
    width: 160px; height: 160px;
    background: #000; 
    border: 1px solid #28231f; 
    border-radius: 16px; 
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#thumb-img { width: 100%; height: 100%; object-fit: cover; display: none; background-color: #000; }
#thumb-img:not([src]) { visibility: hidden; }

#video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 10; display: flex;
    align-items: center; justify-content: center; color: #7ca38f;
    font-family: monospace; cursor: pointer; text-align: center;
    border: 1px solid #7ca38f; box-sizing: border-box;
    border-radius: 16px; 
}

#player { 
    position: absolute; 
    top: 0;
    left: 0;
    opacity: 0.01; 
    z-index: -1; 
    pointer-events: none; 
}
#player-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    min-width: 0;
}

#meta-container { 
    width: 100%;
}
.meta-label {
    color: #666;
    margin-right: 2px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}
#song-title { 
    font-size: 32px; 
    margin: 0; 
    color: #e8e8e8; 
    font-weight: 700; 
    border-bottom: none;
}
#song-details { color: #888; margin-bottom: 10px; font-size: 12px; }
.divider {
    color: #666;
    margin: 0 5px;
    user-select: none;
}

#play-btn { 
    background: linear-gradient(145deg, #b8cfc5, #7ca38f);
    color: #110e0c; 
    border: none; 
    padding: 0; 
    width: 48px; 
    height: 48px; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 15px rgba(62, 169, 138, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

#play-btn svg { width: 24px; height: 24px; }

#play-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 169, 138, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

#play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(62, 169, 138, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#controls { 
    display: flex; 
    align-items: center; 
    gap: 12px;
    line-height: 0;
}

#volume-container { 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

#volume-slider { 
    -webkit-appearance: none; 
    width: 140px;
    height: 4px; 
    background: #28231f; 
    outline: none; 
    border-radius: 2px; 
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none; 
    width: 12px; 
    height: 12px; 
    background: #7ca38f; 
    cursor: pointer; 
    border-radius: 50%;
    transition: background 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    background: #b8cfc5; 
}

#volume-slider::-moz-range-thumb {
    width: 12px; 
    height: 12px; 
    background: #7ca38f; 
    cursor: pointer; 
    border-radius: 50%;
    border: none; 
    transition: background 0.2s;
}

#volume-slider::-moz-range-thumb:hover {
    background: #b8cfc5;
}

#mute-btn { 
    cursor: pointer; 
    color: #b8cfc5; 
    transition: 0.2s; 
    user-select: none; 
    display: flex;
    align-items: center; 
    justify-content: center;
    width: 24px; 
    height: 24px;
}

#mute-btn:hover { 
    color: #7ca38f; 
}

#mute-btn.is-muted { 
    color: #ff5555; 
}

#quality-container select { 
    background: transparent; 
    border: 1px solid #28231f; 
    color: #b8cfc5; 
    font-family: inherit; 
    font-size: 11px; 
    font-weight: bold; 
    padding: 0 15px; 
    cursor: pointer; 
    height: 48px;
    border-radius: 8px;
    box-sizing: border-box; 
    outline: none;
}
#quality-container select:hover { border-color: #7ca38f; }
.high-fidelity #player { width: 1280px !important; height: 720px !important; transform: scale(0.125); transform-origin: top left; }

#live-indicator { font-family: monospace; font-size: 11px; color: #7ca38f; margin-bottom: 10px; letter-spacing: 1px; }
.dot { height: 8px; width: 8px; background-color: #7ca38f; border-radius: 50%; display: inline-block; margin-right: 5px; box-shadow: 0 0 5px #7ca38f; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
#progress-timer { display: inline-block; min-width: 80px; font-variant-numeric: tabular-nums; letter-spacing: 1px; margin-left: 5px; }

#controls.disabled-controls {
    pointer-events: none !important;
    opacity: 0.2 !important;
    filter: grayscale(1); 
    cursor: not-allowed;
    transition: all 0.5s ease;
}

.live-hide {
    display: none !important;
}

#meta-container {
    min-height: 80px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#dj-container {
    width: 160px; height: 160px;
    background: #110e0c; 
    border: 1px solid #28231f; 
    border-radius: 16px; 
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    position: relative; 
    justify-self: end; 
}
.dj-live-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: inset(0 round 8px);
    -webkit-clip-path: inset(0 round 8px);
    border-radius: 8px; 
}

.dj-live-avatar {
    width: 100%; height: 100%; 
        object-fit: cover; display: block;
}

.dj-live-name {
   position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0, 0, 0, 0.75); 
    
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(2px);
    
    font-size: 14px; font-weight: 700; color: #e8e8e8; 
    text-align: center; letter-spacing: 0.5px;
    padding: 6px 0;
   box-sizing: border-box;
}


.dj-live-badge {
    position: absolute; top: 10px; right: 10px;
    background-color: #ff5555; color: #111;
    font-size: 9px; font-weight: bold; letter-spacing: 1px;
    padding: 2px 6px; border-radius: 4px;
    z-index: 5;
}

#dashboard-grid {
    display: flex; 
    padding: 40px calc(max(40px, 50vw - 800px)); 
    gap: 40px; 
    align-items: stretch; 
    flex: 1; 
    min-height: 0; 
    width: 100%;
    
    box-sizing: border-box;
}

.panel {
    background-color: rgba(24, 21, 18, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 163, 143, 0.15);
    border-radius: 16px; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.04); 
    min-height: 0; 
}


#left-col { 
    width: 200px; display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; 
    min-height: 0; height: 100%; 
}

#sidebar { 
    padding: 20px 0; 
    flex-grow: 1; 
    overflow-y: auto; 
    scrollbar-width: thin; 
    scrollbar-color: #7ca38f transparent;
}
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: #7ca38f; border-radius: 10px; }
#live-btn { height: 60px; flex-shrink: 0; background-color: #181818; display: flex; align-items: center; justify-content: center; cursor: not-allowed; border-color: #333; }

#live-btn.is-active {
    background-color: #ff5555 !important;
    border: 1px solid #ff8888;
    color: #111 !important; 
    cursor: pointer;
    animation: livePulse 2s infinite;
}

#live-btn.is-active span {
    color: #111 !important;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 85, 85, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 85, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 85, 85, 0); }
}

.nav-btn {
    background: transparent; 
    border: none; 
    color: #b8cfc5; 
    padding: 15px 20px;
    text-align: left; 
    font-family: 'Noto Sans JP', sans-serif; 
    font-size: 14px;
    font-weight: 700; 
    cursor: pointer; 
    transition: background-color 0.2s, color 0.2s; 
    letter-spacing: 2px;
    flex-shrink: 0;
}

.nav-btn:hover { 
    color: #e8e8e8; 
    background-color: rgba(62, 169, 138, 0.1); 
}

.nav-btn.active { 
    color: #7ca38f; 
    background-color: rgba(62, 169, 138, 0.15); 
}

#center-col { 
    flex-grow: 1; 
    min-height: 0; 
    height: 100%;
    padding: 40px; 
    overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #7ca38f #181818;
    transition: opacity 0.2s ease-in-out; 
}
#center-col::-webkit-scrollbar { width: 6px; }
#center-col::-webkit-scrollbar-track { background: #181818; }
#center-col::-webkit-scrollbar-thumb { background: #7ca38f; border-radius: 10px; }

.page-content { display: none; }
.page-content.active { display: flex; flex-direction: column; height: 100%; animation: quickFadeIn 0.3s forwards; }
@keyframes quickFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
h2 { color: #b8cfc5; letter-spacing: 2px; border-bottom: 1px solid #7ca38f; padding-bottom: 10px; margin-top: 0; }

#right-col { 
    width: 340px; display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; 
    min-height: 0; height: 100%; 
}
.panel-header { background-color: rgba(62, 169, 138, 0.1); border-bottom: 1px solid #7ca38f; padding: 10px 15px; font-weight: bold; font-size: 12px; color: #b8cfc5; letter-spacing: 1px; }

#recent-panel { flex: 0 0 35%; }
#chat-panel { flex-grow: 1; }

.scrollable { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #7ca38f transparent; flex-grow: 1; padding: 15px; }
.scrollable::-webkit-scrollbar { width: 6px; }
.scrollable::-webkit-scrollbar-track { background: transparent; }
.scrollable::-webkit-scrollbar-thumb { background: #7ca38f; border-radius: 10px; }

#history-list { 
    list-style: none; 
    margin: 0; 
    padding: 10px 20px 20px 20px;
}

.history-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid #333; 
    font-size: 12px; 
    line-height: 1.5; 
    align-items: flex-start;
}

.history-text {
    flex-grow: 1;
    padding-right: 15px;
    overflow-wrap: break-word;
}

.history-artist { color: #b8cfc5; font-weight: 700; }
.history-divider { color: #666; margin: 0 1px; }
.history-title { color: #e8e8e8; }

.history-index {
    font-family: monospace; 
    font-size: 11px; 
    color: #666;
    flex-shrink: 0;
    padding-top: 2px;
}

#chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { font-size: 12px; line-height: 1.4; word-wrap: break-word; }
.chat-time { color: #666; font-family: monospace; margin-right: 5px; }
.chat-name { font-weight: 700; margin-right: 5px; }
.chat-text { color: #e8e8e8; }
#chat-input-area { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #333; padding: 15px; background-color: #110e0c; }
#chat-username, #chat-options { 
    flex: 1;
    min-width: 0;
    background: transparent; border: none; border-bottom: 1px solid #333; 
    color: #7ca38f; font-family: monospace; font-size: 11px; 
    padding-bottom: 4px; outline: none; transition: 0.2s; 
}
#chat-options { color: #888; }
#chat-username:focus, #chat-options:focus { border-bottom: 1px solid #7ca38f; }
#chat-input { width: 100%; background: transparent; border: none; color: #e8e8e8; font-family: 'Open Sans', sans-serif; outline: none; }
.chat-spoiler {
    background-color: #28231f;
    color: transparent;
    border-radius: 4px;
    padding: 0 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.chat-spoiler:hover {
    background-color: rgba(40, 35, 31, 0.4);
    color: inherit;
}

.chat-react-btn { 
    background-color: transparent; 
    color: #b8cfc5; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    transition: 0.1s; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.chat-react-btn:hover { color: #e8e8e8; transform: scale(1.2); }
.chat-react-btn:active { transform: scale(0.9); }

#reaction-layer {
    position: fixed;
    bottom: 100px; 
    right: 40px;
    width: 100px;
    height: 60vh;
    pointer-events: none;
    z-index: 9999;
}

.floating-heart {
    position: absolute;
    bottom: 0;
    color: #ff5555;
    opacity: 0;
    animation: floatUp ease-in forwards;
}

@keyframes floatUp {
    0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
    15% { transform: translate(-50%, -30px) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, calc(-60vh)) scale(1); opacity: 0; }
}

@media (max-width: 900px) {
    #reaction-layer { right: 10px; bottom: 80px; }
}

#news-feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-post {
    display: flex;
    gap: 20px;
    background-color: #110e0c; 
    border: 1px solid #333;
    padding: 20px;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.news-post:hover {
    border-color: rgba(62, 169, 138, 0.4); 
}

.news-avatar {
    width: 76px; 
    height: 76px;
    border-radius: 8px;
    border: 2px solid #7ca38f; 
    background-color: #111;
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 6px;
}

.news-title { 
    font-size: 16px; 
    font-weight: 700; 
    color: #e8e8e8; 
    margin: 0;
}

.news-meta {
    font-size: 11px;
    font-family: monospace;
    color: #888;
    letter-spacing: 0.5px;
}

.news-dj { color: #b8cfc5; font-weight: bold;}
.news-date { color: #aaa; }

.news-message { 
    font-size: 13px; 
    color: #bbb; 
    line-height: 1.5; 
    margin-top: 2px; 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}

.roster-category {
    color: #7ca38f;
    letter-spacing: 2px;
    border-bottom: 1px dashed #333;
    padding-bottom: 5px;
    margin: 10px 0 20px 0;
    font-size: 14px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.contributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
    gap: 15px;
    width: 100%;
}

.staff-card {
    display: flex; gap: 15px; align-items: center;
    background-color: #110e0c; border: 1px solid #333;
    padding: 15px; border-radius: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.staff-card:hover { border-color: #7ca38f; transform: translateY(-2px); }

.contributor-card {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    background-color: #110e0c; 
    border: 1px solid #333;
    
    width: 100%; 
    
    padding: 15px 10px; 
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, transform 0.2s;
}

.contributor-card:hover { 
    border-color: #7ca38f; 
    transform: translateY(-3px);
}

.staff-avatar { width: 70px; height: 70px; border-radius: 8px; border: 2px solid #7ca38f; object-fit: cover; flex-shrink: 0; background: #111; }
.contributor-avatar { 
    width: 70px; 
    height: 70px; 
    border-radius: 10px; 
    border: 1px solid #333; 
    object-fit: cover; 
    flex-shrink: 0; 
}

.contributor-name {
    font-size: 14px; 
    font-weight: 700; 
    color: #e8e8e8; 
    text-align: center;
    letter-spacing: 0.5px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-info { display: flex; flex-direction: column; gap: 4px; }
.staff-name { font-size: 16px; font-weight: 700; color: #e8e8e8; }
.staff-bio { font-size: 12px; color: #bbb; line-height: 1.4; }

#history-search {
    width: 100%;
    background-color: #110e0c;
    border: 1px solid #333;
    color: #e8e8e8;
    font-family: 'Open Sans', sans-serif;
    padding: 15px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

#history-search:focus { border-color: #7ca38f; }

.archive-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    background-color: #161616;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.archive-item:hover { background-color: #110e0c; }

.archive-time { 
    font-family: monospace; 
    font-size: 14px;
    color: #888; 
    flex-shrink: 0; 
    width: 140px;
    letter-spacing: 0.5px; 
}

.archive-meta { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    font-size: 13px;
}

.archive-title { color: #e8e8e8;}
.archive-artist { color: #b8cfc5;}



#mobile-menu-btn, #mobile-chat-fab, #mobile-chat-close { display: none; }


@media (max-width: 900px) {
    body { min-width: 0; } 
    #header-radio {
        display: flex;
        position: relative;
        flex-wrap: wrap; 
        height: auto;
        padding: 15px;
        gap: 15px;
        align-items: center;
    }

    #mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px; 
        left: 15px; 
        width: 48px;
        height: 48px;
        background: #110e0c;
        border: 1px solid #7ca38f;
        border-radius: 8px;
        color: #7ca38f;
        cursor: pointer;
        z-index: 100;
        padding: 0;
    }

    #branding {
        width: 100%;
        height: 48px; 
        flex-direction: row; 
        padding: 0;
        background: transparent; 
        border: none;
        position: relative;
        left: 20px; 
    }
    .sansai-logo { width: 32px; height: 32px; }
    .branding-text { gap: 8px; }
    .branding-en { font-size: 14px; letter-spacing: 3px; }
    .branding-jp { font-size: 13px; }
    #player-wrapper {
        flex: 1;
        gap: 12px;
        min-width: 0; 
    }
    
    #artwork-container {
        width: 64px;
        height: 64px; 
        flex-shrink: 0;
        border-radius: 8px;
    }

    #dj-container {
        width: 64px; 
        height: 64px; 
        padding: 0; 
        border-radius: 8px; 
        gap: 0; 
        overflow: hidden;
        flex-shrink: 0; 
    }
    
    #dj-container span {
        text-align: center;
        line-height: 1.2;
    }

    #meta-container {
        flex: 1;
        min-width: 0; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #live-indicator { margin-bottom: 2px; font-size: 9px; }
    #song-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
    #song-details { font-size: 10px; margin-bottom: 6px; }

    #controls { gap: 10px; }
    #play-btn { width: 36px; height: 36px; border-radius: 6px; }
    #play-btn svg { width: 18px; height: 18px; }
    #volume-slider, #quality-container, #mute-btn { display: none; }

    #player { transform: scale(0.4); transform-origin: top left; }

    .dj-live-wrapper {
        position: relative; width: 100%; height: 100%;
        clip-path: inset(0 round 8px); -webkit-clip-path: inset(0 round 8px);
        border-radius: 8px; 
    }
    .dj-live-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
    .dj-live-name {
        position: absolute; bottom: 0; left: 0; width: 100%;
        background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
        font-size: 11px; font-weight: 700; color: #e8e8e8; text-align: center; padding: 4px 0;
    }

    #dashboard-grid {
        padding: 15px;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        flex: 1; 
        min-height: 0;
        position: relative; 
        box-sizing: border-box;
    }

    #center-col {
        flex: 1 0 auto; 
        width: 100%;    
        min-width: 0;   
        padding: 20px;
        box-sizing: border-box;
    }

    #mobile-chat-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 30px; right: 25px;  
        width: 56px; height: 56px;
        background: #7ca38f; border-radius: 50%;
        border: 4px solid #121212; color: #121212;
        cursor: pointer; z-index: 50;
    }

    #left-col {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px);
        z-index: 200; opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
        justify-content: center; align-items: center;
    }

    #left-col.menu-open { opacity: 1; pointer-events: auto; }
    #sidebar { background: transparent; border: none; align-items: center; width: 100%; }
    .nav-btn { text-align: center; font-size: 22px; padding: 15px; }
    #live-btn { display: none; }

    #right-col {
        position: absolute;
        top: 15px; bottom: 15px; left: 15px; right: 15px; 
        width: auto; height: auto; pointer-events: none; 
    }

    #recent-panel { display: none !important; }

    #chat-panel {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 100; pointer-events: auto; opacity: 0; visibility: hidden;
        transform: translateY(20px); transition: all 0.2s ease;
    }

    #chat-panel.chat-open { opacity: 1; visibility: visible; transform: translateY(0); }

    #mobile-chat-close { 
        display: block; background: transparent; border: none; color: #ff5555; 
        font-size: 16px; font-weight: bold; cursor: pointer; 
    }
    
    .panel-header { display: flex; justify-content: space-between; align-items: center; }
}

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-family: monospace; font-size: 11px; color: #888; letter-spacing: 1px; }
.form-input { 
    background-color: #110e0c; border: 1px solid #333; color: #e8e8e8; 
    font-family: 'Open Sans', sans-serif; padding: 15px; border-radius: 8px; 
    font-size: 14px; outline: none; transition: border-color 0.2s; 
}
.form-input:focus { border-color: #7ca38f; }

#suggest-btn {
    background-color: #7ca38f; color: #121212; border: none; 
    padding: 15px; border-radius: 8px; font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700; font-size: 14px; letter-spacing: 2px;
    cursor: pointer; transition: 0.2s; width: 100%; margin-top: 10px;
}
#suggest-btn:hover { background-color: #b8cfc5; }


.hidden { display: none; }
.mt-5 { margin-top: 5px; }
.mt-15 { margin-top: 15px; }
.mt-40 { margin-top: 40px; }
.p-0 { padding: 0; }
.flex-row-wrap { display: flex; gap: 20px; flex-wrap: wrap; }

.status-text { font-size: 11px; color: #666; font-weight: bold; letter-spacing: 1px; }
.sys-text { color: #666; font-family: monospace; font-size: 12px; }
#artist { color: #a1d2c4; }

.content-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #3ea98a; padding-bottom: 10px; margin-bottom: 20px; }
.content-header.red { border-bottom-color: #ff5555; }
.page-title { border: none; margin: 0; padding: 0; color: #b8cfc5; letter-spacing: 2px; }
.page-title.red { color: #ff5555; }
.rss-link { font-size: 11px; font-weight: bold; letter-spacing: 1px; }

.info-box { background-color: #110e0c; border: 1px solid #333; border-radius: 12px; }
.roots-box { padding: 30px; margin-bottom: 20px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02); }
.box-half { flex: 1; min-width: 300px; padding: 25px; }
.box-label { color: #7ca38f; font-family: monospace; font-size: 11px; letter-spacing: 2px; margin-bottom: 10px; }
.box-label.dashed { border-bottom: 1px dashed #333; padding-bottom: 8px; margin-bottom: 15px; }
.box-title { font-size: 18px; font-weight: 700; color: #e8e8e8; margin-bottom: 15px; }
.box-text { color: #bbb; line-height: 1.6; font-size: 14px; margin-top: 0; margin-bottom: 15px; }
.box-text.small { font-size: 13px; }
.box-text.no-margin { margin-bottom: 0; }

.rec-list { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.5; }
.rec-link { color: #e8e8e8; text-decoration: none; font-weight: 700; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.rec-link:hover { border-color: #7ca38f; }
.rec-desc { color: #666; font-size: 11px; font-family: monospace; margin-left: 10px; }

.heritage-container { display: flex; align-items: center; justify-content: center; gap: 30px; height: 110px; }
.heritage-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.heritage-logo { max-height: 80px; width: auto; opacity: 0.7; transition: opacity 0.3s; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); }
.heritage-logo:hover { opacity: 1; }
.heritage-logo.large { max-height: 90px; }
.heritage-label { font-family: monospace; font-size: 10px; color: #444; letter-spacing: 1px; }
.heritage-divider { width: 1px; height: 60px; background: #222; }

.req-star { color: #ff5555; }
.success-state { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; gap: 15px; }
.success-title { color: #a1d2c4; font-size: 16px; font-weight: bold; letter-spacing: 1px; }
.btn-outline { margin-top: 20px; border: 1px solid #3ea98a; text-align: center; }

.gb-form-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.text-area-input { resize: vertical; font-family: inherit; }
.gb-wall { display: flex; flex-direction: column; gap: 15px; }

.form-row { display: flex; gap: 15px; margin-bottom: 20px; }
.form-group.half { flex: 1; margin-bottom: 0; }
.select-input { 
    appearance: none; cursor: pointer; color: #e8e8e8; 
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%237ca38f" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); 
    background-repeat: no-repeat; background-position: right 15px center; background-size: 20px; 
}

#twitch-embed-container { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }