@charset "UTF-8";
:root {
            --bg-color: #0f172a;
            --card-color: #1e293b;
            --primary-color: #ec4899;
            --text-color: #f8fafc;
            --text-muted: #94a3b8;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.5;
            padding-bottom: 20px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        .app-header {
            background-color: var(--card-color);
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid #334155;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .app-header h1 {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            margin: 0;
            user-select: none;
        }

        .app-container {
            padding: 15px;
            max-width: 600px;
            margin: 0 auto;
            flex: 1;
            width: 100%;
        }

        .player-wrapper {
            display: none;
            margin-bottom: 20px;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            padding-top: 56.25%;
        }
        
        .player-wrapper iframe, .player-wrapper video, .player-wrapper .fallback-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Shorts mode: vertical 9:16 player when a post has the label "Shorts" */
        .player-wrapper.shorts-mode {
            width: min(100%, 430px);
            padding-top: 0;
            aspect-ratio: 9 / 16;
            margin-left: auto;
            margin-right: auto;
        }

        .player-wrapper.shorts-mode iframe,
        .player-wrapper.shorts-mode video,
        .player-wrapper.shorts-mode .fallback-container {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        @media (max-width: 600px) {
            .player-wrapper.shorts-mode {
                width: min(100%, 380px);
            }
        }

        @media (min-width: 601px) and (max-width: 1024px) {
            .player-wrapper.shorts-mode {
                width: min(62vw, 430px);
            }
        }

        @media (min-width: 1025px) and (max-width: 1599px) {
            .player-wrapper.shorts-mode {
                width: min(34vw, 430px);
            }
        }

        @media (min-width: 1600px) {
            .player-wrapper.shorts-mode {
                width: min(24vw, 520px);
            }
        }

        .fallback-container {
            background-color: #111827;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
            z-index: 10;
        }

        .fallback-title {
            color: #f43f5e;
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .fallback-btn {
            background-color: #ef4444;
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            font-size: 0.95rem;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
            animation: pulseBtn 1.5s infinite;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        @keyframes pulseBtn {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }

        .drive-blocker {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 25%;
            background: rgba(0, 0, 0, 0.01);
            z-index: 99;
            cursor: default;
        }

        .queue-wrapper {
            background-color: var(--card-color);
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            display: none;
        }

        .queue-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            border-bottom: 1px solid #334155;
            padding-bottom: 8px;
        }

        .queue-header h3 { font-size: 0.95rem; color: #10b981; display: flex; align-items: center; gap: 6px; }

        .queue-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }

        .queue-item { display: flex; align-items: center; justify-content: space-between; background: #0f172a; padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; }

        .queue-item-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }

        .btn-remove-queue { background: transparent; border: none; color: #ef4444; cursor: pointer; padding: 2px 6px; }

        .text-content-wrapper {
            display: none;
            margin-bottom: 20px;
            background-color: var(--card-color);
            border-radius: 12px;
            padding: 20px;
            border: 2px solid #3b82f6; 
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            height: auto;
            overflow: visible;
            position: relative;
        }

        .text-content-wrapper h2 { 
            font-size: 1.2rem; 
            color: var(--primary-color); 
            margin-bottom: 12px; 
            border-bottom: 1px dashed #334155; 
            padding-bottom: 8px; 
        }

        .text-body { 
            font-size: 0.95rem; 
            color: #e2e8f0; 
            line-height: 1.6; 
            white-space: pre-line !important; 
        }

        .text-body img {
            display: block;
            max-width: 100% !important;
            height: auto !important;
            margin: 15px auto;
            border-radius: 10px;
        }

        .notice-content img {
            display: block;
            max-width: 100% !important;
            height: auto !important;
            margin: 12px auto;
            border-radius: 10px;
        }

        .tv-guide-btn {
            margin-top: 14px;
            padding: 10px 16px;
            border: none;
            border-radius: 24px;
            background: #2563eb;
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .tv-device-btn {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #334155;
            border-radius: 10px;
            background: #0f172a;
            color: #e2e8f0;
            text-align: left;
            cursor: pointer;
            font-weight: 600;
        }

        .comments-wrapper {
            display: none;
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 14px;
            padding: 16px;
            margin: 18px 0;
        }

        .comment-item {
            display: flex;
            gap: 10px;
            padding: 12px 0;
            border-bottom: 1px solid #334155;
        }

        .comment-item:last-child { border-bottom: none; }

        .comment-avatar {
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: 50%;
            object-fit: cover;
            background: #0f172a;
        }

        .comment-avatar-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #ec4899, #2563eb);
            color: #fff;
            font-weight: 800;
            font-size: 1rem;
            text-transform: uppercase;
        }

        .comment-author { color: #f8fafc; font-weight: 700; font-size: 0.9rem; }
        .comment-date { color: #64748b; font-size: 0.72rem; margin-top: 2px; }
        .comment-body { color: #cbd5e1; font-size: 0.9rem; line-height: 1.55; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

        .comment-action-btn {
            border: none;
            border-radius: 22px;
            padding: 9px 14px;
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }

        .search-wrapper { position: relative; margin-bottom: 15px; }
    
        .search-input {
            width: 100%;
            padding: 18px 60px 18px 50px;
            font-size: 1.1rem;
            border-radius: 30px;
            border: 2px solid #334155;
            background-color: var(--card-color);
            color: var(--text-color);
            outline: none;
        }

        .search-submit-btn {
            position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
            background: transparent; color: var(--primary-color); border: none;
            width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
            z-index: 2;
        }

        .search-submit-btn:active { background-color: #334155; }

        .voice-btn {
            position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
            background-color: #334155; color: var(--text-muted); border: none;
            width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
        }

        .voice-btn.listening { background-color: var(--primary-color); color: #fff; animation: pulseMic 1.2s infinite; }

        @keyframes pulseMic {
            0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
            70% { box-shadow: 0 0 0 12px rgba(236, 72, 153, 0); }
            100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
        }

        .filter-scroll-container { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 15px; scrollbar-width: none; }
        .filter-scroll-container::-webkit-scrollbar { display: none; }

        .filter-btn {
            background-color: var(--card-color); color: var(--text-color); border: 1px solid #334155;
            padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; white-space: nowrap;
            cursor: pointer; font-weight: 500;
        }

        .filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }

        .section-title { font-size: 1rem; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; }

        .song-list { display: flex; flex-direction: column; gap: 10px; }
        .song-item { background-color: var(--card-color); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; }

        .song-thumb {
            width: 50px; height: 50px; background-color: #0f172a; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
            color: var(--primary-color); border: 2px solid #334155;
        }
        .song-thumb.text-type { color: #3b82f6; border-color: #1e3a8a; }

        .song-info { flex: 1; }
        .song-title { font-size: 0.95rem; font-weight: 500; color: var(--text-color); margin-bottom: 2px; }

        .song-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
        .song-tag { background-color: #475569; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; }

        .action-group { display: flex; gap: 6px; align-items: center; }
        .btn-play { background-color: var(--primary-color); color: white; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; }
        .btn-queue { background-color: #10b981; color: white; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; }
        .btn-read { background-color: #334155; color: #3b82f6; border: 1px solid #1e3a8a; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; }
        
        .loading-text { text-align: center; color: var(--text-muted); font-style: italic; padding: 20px; }
        
        .app-footer {
            text-align: center;
            padding: 18px 20px 16px;
            color: var(--text-muted);
            font-size: 0.85rem;
            margin: 32px 20px 18px;
            border-radius: 24px;
            position: relative;
            background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(59,130,246,0.08)), var(--bg-color);
            border: 1px solid rgba(59,130,246,0.70);
            box-shadow: -10px 0 28px rgba(236,72,153,0.12), 10px 0 28px rgba(59,130,246,0.12), 0 10px 28px rgba(0,0,0,0.22);
        }
        .app-footer::before {
            content: "";
            position: absolute;
            top: -1px; left: 22px; right: 22px; height: 1px;
            border-radius: 999px;
            background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
            box-shadow: 0 0 12px rgba(236,72,153,0.45), 0 0 12px rgba(59,130,246,0.35);
        }
        .footer-links {
            margin-bottom: 12px;
            display: flex;
            justify-content: center;
            gap: 28px;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        .footer-links a {
            color: #f8fafc;
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 7px;
        }
        .footer-links a i { color: var(--primary-color); }
        .app-footer p { margin: 0; color: #94a3b8; }

        /* ===== FULL RESPONSIVE LAYER =====
           Phone / Tablet-iPad / Desktop / Large Desktop-TV
           Existing application logic is untouched. */

        img, video, iframe { max-width: 100%; }

        .song-info { min-width: 0; }
        .song-title { overflow-wrap: anywhere; }
        .action-group { flex: 0 0 auto; }
        button, .filter-btn, .btn-play, .btn-queue, .btn-read { touch-action: manipulation; }

        /* Phone */
        @media (max-width: 600px) {
            body { padding-bottom: 8px; }
            .app-header { padding: 12px 10px; }
            .app-header h1 { font-size: clamp(1.05rem, 5vw, 1.25rem); }
            .app-container { padding: 12px; max-width: 100%; }
            .player-wrapper, .queue-wrapper, .text-content-wrapper { margin-bottom: 16px; }
            .queue-wrapper { padding: 12px; }
            .queue-item { padding: 9px 10px; }
            .search-input { padding: 14px 56px 14px 52px; font-size: 1rem; }
            .search-submit-btn { width: 40px; height: 40px; left: 6px; }
            .voice-btn { width: 40px; height: 40px; right: 8px; }
            .filter-scroll-container { gap: 7px; margin-left: -2px; margin-right: -2px; }
            .filter-btn { padding: 8px 14px; font-size: 0.82rem; }
            .section-title { font-size: 0.92rem; }
            .song-item { padding: 10px; gap: 9px; }
            .song-thumb { width: 44px; height: 44px; min-width: 44px; font-size: 1.05rem; }
            .song-title { font-size: 0.9rem; line-height: 1.3; }
            .song-tag { font-size: 0.64rem; }
            .action-group { gap: 5px; }
            .btn-play, .btn-queue, .btn-read { width: 34px; height: 34px; min-width: 34px; }
            .text-content-wrapper { padding: 15px; }
            .text-content-wrapper h2 { font-size: 1.08rem; }
            .text-body { font-size: 0.92rem; }
            .fullscreen-mode { padding: 18px !important; }
            .stars-container { gap: 9px; font-size: 1.4rem; }
            .app-footer { margin: 24px 12px 12px; border-radius: 20px; padding: 16px 14px 14px; }
            .footer-links { gap: 16px; font-size: 0.85rem; }
            #adminContent, #modalContent { width: 94% !important; max-height: 88vh; }
        }

        /* Small phones */
        @media (max-width: 380px) {
            .app-container { padding: 10px; }
            .song-item { gap: 7px; }
            .song-thumb { width: 40px; height: 40px; min-width: 40px; }
            .song-title { font-size: 0.86rem; }
            .btn-play, .btn-queue, .btn-read { width: 32px; height: 32px; min-width: 32px; }
            .song-tag { font-size: 0.6rem; padding: 2px 5px; }
        }

        /* Tablet / iPad */
        @media (min-width: 601px) and (max-width: 1024px) {
            .app-header { padding: 16px 20px; }
            .app-header h1 { font-size: 1.4rem; }
            .app-container { max-width: 820px; padding: 20px 24px; }
            .search-input { font-size: 1.08rem; }
            .filter-btn { padding: 9px 17px; font-size: 0.9rem; }
            .song-item { padding: 14px; gap: 14px; }
            .song-thumb { width: 54px; height: 54px; min-width: 54px; }
            .song-title { font-size: 1rem; }
            .btn-play, .btn-queue, .btn-read { width: 40px; height: 40px; }
            .queue-list { max-height: 280px; }
            .text-body { font-size: 1rem; }
            .app-footer { margin: 30px 18px 16px; padding: 18px; }
        }

        /* Desktop / Laptop */
        @media (min-width: 1025px) and (max-width: 1599px) {
            .app-header { padding: 17px 24px; }
            .app-header h1 { font-size: 1.45rem; }
            .app-container { max-width: 760px; padding: 22px 24px; }
            .song-item { padding: 14px 16px; }
            .song-thumb { width: 54px; height: 54px; min-width: 54px; }
            .song-title { font-size: 1rem; }
            .btn-play, .btn-queue, .btn-read { width: 40px; height: 40px; }
            .queue-list { max-height: 300px; }
            .app-footer { max-width: 1500px; width: calc(100% - 40px); margin: 34px auto 18px; }
        }

        /* Large desktop / TV / 4K */
        @media (min-width: 1600px) {
            body { font-size: clamp(16px, 0.8vw, 22px); }
            .app-header { padding: clamp(18px, 1.1vw, 28px) 32px; }
            .app-header h1 { font-size: clamp(1.5rem, 1.35vw, 2.1rem); gap: 12px; }
            .app-container { max-width: min(1100px, 68vw); padding: clamp(24px, 1.5vw, 38px); }
            .player-wrapper { border-radius: 16px; margin-bottom: 28px; }
            .queue-wrapper, .text-content-wrapper { border-radius: 16px; padding: clamp(18px, 1.15vw, 28px); }
            .queue-header h3 { font-size: clamp(1rem, 0.85vw, 1.25rem); }
            .queue-list { max-height: 380px; gap: 10px; }
            .queue-item { font-size: clamp(0.9rem, 0.75vw, 1.1rem); padding: 11px 15px; }
            .search-input { padding: 20px 72px 20px 60px; font-size: clamp(1.1rem, 0.95vw, 1.4rem); border-radius: 34px; }
            .search-submit-btn { width: 50px; height: 50px; left: 10px; font-size: 1.3rem; }
            .voice-btn { width: 50px; height: 50px; right: 12px; font-size: 1.3rem; }
            .filter-scroll-container { gap: 12px; padding-bottom: 18px; }
            .filter-btn { padding: 11px 20px; border-radius: 24px; font-size: clamp(0.9rem, 0.72vw, 1.08rem); }
            .section-title { font-size: clamp(1rem, 0.85vw, 1.25rem); }
            .song-list { gap: 13px; }
            .song-item { padding: 16px 18px; gap: 16px; border-radius: 13px; }
            .song-thumb { width: 60px; height: 60px; min-width: 60px; font-size: 1.35rem; }
            .song-title { font-size: clamp(1rem, 0.85vw, 1.25rem); }
            .song-tag { font-size: clamp(0.7rem, 0.58vw, 0.9rem); padding: 3px 7px; }
            .action-group { gap: 9px; }
            .btn-play, .btn-queue, .btn-read { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }
            .text-content-wrapper h2 { font-size: clamp(1.25rem, 1vw, 1.55rem); }
            .text-body { font-size: clamp(1rem, 0.82vw, 1.25rem); line-height: 1.7; }
            .page-btn { padding: 10px 20px; font-size: 1rem; }
            .stars-container { font-size: 1.8rem; gap: 15px; }
            .app-footer {
                width: calc(100% - 64px);
                max-width: 1800px;
                margin: 42px auto 26px;
                padding: 24px 30px 22px;
                border-radius: 28px;
                font-size: clamp(0.95rem, 0.75vw, 1.15rem);
            }
            .footer-links { gap: clamp(30px, 2.5vw, 52px); font-size: clamp(1rem, 0.85vw, 1.25rem); margin-bottom: 14px; }
            .footer-links a { min-height: 42px; padding: 4px 6px; }
            #adminContent { max-width: 760px !important; width: min(92%, 760px) !important; }
            #modalContent { max-width: 620px !important; width: min(92%, 620px) !important; }
        }

        .rating-wrapper {
            display: none;
            border: 2px dashed #00ffd5;
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            background-color: #1e293b;
            margin-top: -10px;
            margin-bottom: 20px;
        }
        .rating-wrapper p { font-size: 0.9rem; color: #00ffd5; font-weight: bold; margin-bottom: 8px; }
        .stars-container { display: flex; justify-content: center; gap: 12px; font-size: 1.5rem; color: #475569; }
        .stars-container i { cursor: pointer; }
        .stars-container i.active { color: #ffb703; }

        .fullscreen-mode {
            position: fixed !important;
            top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
            width: 100% !important; height: 100% !important;
            max-width: none !important; margin: 0 !important; border-radius: 0 !important;
            z-index: 99999 !important;
            overflow-y: auto !important;
            background-color: var(--bg-color) !important;
            border: 2px solid #3b82f6 !important; 
            padding: 30px !important; 
        }

        .pagination-container {
            display: none; 
            margin-top: 25px; 
            text-align: center; 
            gap: 10px; 
            justify-content: center; 
            flex-wrap: wrap;
            border-top: 1px dashed #334155;
            padding-top: 15px;
        }
        .page-btn {
            background-color: #334155; color: #f8fafc; border: none; 
            padding: 8px 16px; border-radius: 20px; cursor: pointer;
            font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
        }
        .page-btn.active {
            background-color: var(--primary-color); color: white; font-weight: bold;
            box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
        }

        #adminSearchResults::-webkit-scrollbar { width: 6px; }
        #adminSearchResults::-webkit-scrollbar-track { background: #0f172a; }
        #adminSearchResults::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
        #adminSearchResults::-webkit-scrollbar-thumb:hover { background: #475569; }

        /* ===== KARACUATUI 2026 LIGHT SKIN ===== */
        :root {
            --bg-color: #fffaf0;
            --card-color: #ffffff;
            --primary-color: #d62828;
            --secondary-color: #f4a261;
            --text-color: #2b2b2b;
            --text-muted: #6b7280;
            --line-color: #eadfca;
            --soft-color: #fff3db;
        }
        body { background: var(--bg-color); color: var(--text-color); }
        .app-header {
            background: rgba(255,255,255,.96);
            border-bottom: 1px solid var(--line-color);
            box-shadow: 0 3px 14px rgba(89,58,24,.07);
        }
        .app-header h1 { color: var(--primary-color); letter-spacing: .03em; }
        .app-container { max-width: 920px; }
        #homeNoticeBox {
            background: #fff !important;
            border-color: #e9b44c !important;
            box-shadow: 0 4px 18px rgba(89,58,24,.06);
        }
        #homeNoticeTitle { color: #b45309 !important; }
        #homeNoticeContent { color: #5f5a52 !important; }
        .search-input, .queue-wrapper, .text-content-wrapper, .song-item,
        .comments-wrapper, .rating-wrapper {
            background: #fff !important;
            border-color: var(--line-color) !important;
            color: var(--text-color) !important;
            box-shadow: 0 3px 14px rgba(89,58,24,.05);
        }
        .search-input { color: var(--text-color); }
        .voice-btn { background: var(--soft-color); color: var(--primary-color); }
        .filter-scroll-container { padding-top: 2px; }
        .filter-btn {
            background: #fff;
            color: #4b5563;
            border-color: var(--line-color);
        }
        .filter-btn.active {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: #fff;
        }
        .song-thumb { background:#fff7ed; border-color:#fed7aa; }
        .song-thumb.text-type { background:#eff6ff; border-color:#bfdbfe; }
        .song-title, .comment-author, .footer-links a { color: #262626 !important; }
        .song-tag { background:#f3eadb; color:#7c4a13; }
        .text-body, .comment-body { color:#3f3f46 !important; }
        .comment-date, .loading-text, .app-footer p { color:#737373 !important; }
        .queue-item { background:#fff7ed; }
        .rating-wrapper { border-style: solid; }
        .app-footer {
            background: #fff !important;
            border-color: var(--line-color);
            box-shadow: 0 4px 18px rgba(89,58,24,.06);
        }
        .app-footer::before { background: linear-gradient(90deg,#d62828,#f4a261,#e9c46a); }
        .kct-versions {
            background:#fff;
            border:1px solid var(--line-color);
            border-radius:14px;
            padding:14px;
            margin:-6px 0 20px;
            box-shadow:0 4px 18px rgba(89,58,24,.06);
        }
        .kct-version-title {
            font-size:.82rem;
            color:#9a3412;
            font-weight:800;
            margin-bottom:10px;
            letter-spacing:.03em;
        }
        .kct-version-grid {
            display:grid;
            grid-template-columns:repeat(auto-fit,minmax(112px,1fr));
            gap:8px;
        }
        .kct-version-btn {
            border:1px solid #e7d8c0;
            background:#fffaf0;
            color:#4b3425;
            border-radius:10px;
            min-height:42px;
            padding:8px 10px;
            font-weight:700;
            cursor:pointer;
        }
        .kct-version-btn:hover { border-color:#d62828; }
        .kct-version-btn.active { background:#d62828; border-color:#d62828; color:#fff; }
        .kct-version-btn:disabled {
            opacity:.34;
            cursor:not-allowed;
            background:#f5f5f4;
            color:#78716c;
        }
        #backToTopBtn {
            display:none;
            position:fixed;
            right:20px;
            bottom:88px;
            width:46px;
            height:46px;
            border-radius:50%;
            border:1px solid #e7d8c0;
            background:#fff;
            color:#d62828;
            box-shadow:0 5px 18px rgba(89,58,24,.16);
            z-index:9998;
            cursor:pointer;
            font-size:1.05rem;
        }
        #backToTopBtn.show { display:flex; align-items:center; justify-content:center; }
        @media (max-width:600px) {
            .kct-version-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
            #backToTopBtn { right:16px; bottom:84px; width:44px; height:44px; }
        }



        /* KCT FIX2: Admin shortcut */
        .app-header { position: sticky; }
        .kct-admin-shortcut {
            position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
            display: inline-flex; align-items: center; gap: 7px;
            padding: 8px 12px; border: 1px solid #f59e0b; border-radius: 999px;
            background: #fff7ed; color: #b45309; font-size: 0.82rem; font-weight: 800;
            cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,.08); z-index: 20;
        }
        .kct-admin-shortcut:hover { background:#ffedd5; }
        .kct-admin-menu {
            position: fixed; inset: 0; z-index: 10020; display: none;
            align-items: center; justify-content: center; padding: 16px;
            background: rgba(15,23,42,.62);
        }
        .kct-admin-menu.open { display:flex; }
        .kct-admin-card {
            width: min(92vw, 360px); background:#fff; border:1px solid #fed7aa;
            border-radius:16px; padding:18px; box-shadow:0 18px 50px rgba(15,23,42,.25);
        }
        .kct-admin-card h3 { margin:0 0 12px; color:#c2410c; font-size:1.05rem; }
        .kct-admin-actions { display:grid; gap:9px; }
        .kct-admin-action {
            width:100%; border:1px solid #e5e7eb; background:#fff; color:#1f2937;
            border-radius:10px; padding:11px 12px; text-align:left; font-weight:700; cursor:pointer;
        }
        .kct-admin-action:hover { background:#fff7ed; border-color:#fdba74; }
        .kct-admin-close { margin-top:10px; width:100%; border:none; background:#f3f4f6; color:#475569;
            border-radius:10px; padding:10px; font-weight:700; cursor:pointer; }
        @media (max-width: 700px) {
            .kct-admin-shortcut { right:10px; padding:7px 9px; font-size:0.74rem; }
            .kct-admin-shortcut .kct-admin-text { display:none; }
        }


        #textContentBody img{max-width:100%!important;height:auto!important;display:block;margin:14px auto}
        #textContentBody iframe,#textContentBody video{max-width:100%}

        /* KARAOKE CỦA TUI — CLEAN BASELINE 1.0: dynamic YouTube sources + inline YouTube hooks */
        .kct-composer-modal{position:fixed;inset:0;z-index:10030;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(15,23,42,.68)}
        .kct-composer-modal.open{display:flex}.kct-composer-card{width:min(96vw,760px);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:18px;box-shadow:0 18px 55px rgba(15,23,42,.28)}
        .kct-composer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.kct-composer-head h3{margin:0;color:#c2410c}.kct-composer-close{border:0;background:#f3f4f6;border-radius:9px;padding:8px 11px;cursor:pointer}
        .kct-builder-section{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:12px 0}.kct-builder-section h4{margin:0 0 8px;color:#374151}.kct-builder-note{font-size:.84rem;color:#6b7280;line-height:1.45;margin-bottom:8px}
        .kct-builder-row{display:grid;grid-template-columns:180px 1fr auto;gap:8px;margin:7px 0}.kct-builder-row input{min-width:0;border:1px solid #d1d5db;border-radius:8px;padding:9px}.kct-row-remove{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;padding:0 10px;cursor:pointer}
        .kct-builder-add,.kct-builder-copy{border:0;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}.kct-builder-add{background:#fff7ed;color:#c2410c;border:1px solid #fdba74}.kct-builder-copy{background:#c2410c;color:#fff}
        .kct-builder-output{width:100%;min-height:92px;border:1px solid #d1d5db;border-radius:9px;padding:9px;font-family:monospace;font-size:.82rem;resize:vertical;margin-top:8px}
        .kct-inline-audio-card,.kct-inline-hook-card{margin:14px 0;padding:12px 14px;border:1px solid #ead9c2;border-radius:12px;background:#fffaf3;box-shadow:0 2px 8px rgba(89,58,24,.06)}
        .kct-inline-audio-title,.kct-inline-hook-title{font-weight:800;color:#9a3412;margin-bottom:8px;display:flex;align-items:center;gap:7px}.kct-inline-audio-card audio{width:100%;height:40px;display:block}
        .kct-inline-hook-meta{font-size:.8rem;color:#64748b;margin:0 0 8px}.kct-inline-hook-player{width:100%;height:200px;overflow:hidden;border-radius:10px;background:#000}.kct-inline-hook-player iframe{width:100%!important;height:100%!important;display:block}
        .kct-hook-row{grid-template-columns:150px 1fr 90px 90px auto}
        @media(max-width:650px){.kct-inline-hook-player{height:200px}.kct-hook-row{grid-template-columns:1fr}}
        @media(max-width:650px){.kct-builder-row{grid-template-columns:1fr}.kct-row-remove{padding:8px}.kct-composer-card{padding:14px}}


        /* Logged-in session quick request: adds YouTube result to current play queue only. */
        .kct-quick-post-btn {
            position:absolute; left:18px; top:50%; transform:translateY(-50%);
            display:none; align-items:center; gap:7px;
            min-height:38px; padding:7px 11px; border:1px solid #86efac; border-radius:999px;
            background:#f0fdf4; color:#166534; font-size:.8rem; font-weight:800; cursor:pointer;
            box-shadow:0 2px 8px rgba(15,23,42,.07); z-index:20;
        }
        .kct-quick-post-btn:hover { background:#dcfce7; }
        @media (max-width:700px) {
            .kct-quick-post-btn { left:10px; padding:7px 9px; }
            .kct-quick-post-btn .kct-quick-post-text { display:none; }
        }

        /* KCT Google Login */
        .kct-google-login-shortcut {
            position:absolute; right:18px; top:50%; transform:translateY(-50%);
            display:inline-flex; align-items:center; gap:7px;
            min-height:38px; padding:7px 11px; border:1px solid #d7dce3; border-radius:999px;
            background:#fff; color:#334155; font-size:.8rem; font-weight:700; cursor:pointer;
            box-shadow:0 2px 8px rgba(15,23,42,.07); z-index:20;
        }
        .kct-google-login-shortcut:hover { background:#f8fafc; }
        .kct-google-login-shortcut img { width:24px; height:24px; border-radius:50%; object-fit:cover; }
        .kct-google-login-shortcut .kct-google-name { max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .kct-google-login-modal { position:fixed; inset:0; z-index:10040; display:none; align-items:center; justify-content:center; padding:16px; background:rgba(15,23,42,.62); }
        .kct-google-login-modal.open { display:flex; }
        .kct-google-login-card { width:min(92vw,380px); background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:20px; box-shadow:0 18px 50px rgba(15,23,42,.25); color:#1f2937; text-align:center; }
        .kct-google-login-card h3 { margin:0 0 8px; color:#b45309; }
        .kct-google-login-card p { margin:0 0 14px; color:#64748b; font-size:.88rem; line-height:1.45; }
        #kctGoogleOfficialButton { display:flex; justify-content:center; min-height:44px; }
        .kct-google-logout { display:none; margin-top:12px; width:100%; border:1px solid #e5e7eb; background:#f8fafc; color:#475569; border-radius:10px; padding:10px; font-weight:700; cursor:pointer; }
        .kct-google-close { margin-top:10px; width:100%; border:none; background:#f3f4f6; color:#475569; border-radius:10px; padding:10px; font-weight:700; cursor:pointer; }
        @media (max-width:700px) {
            .kct-google-login-shortcut { right:10px; padding:7px 9px; }
            .kct-google-login-shortcut .kct-google-name { display:none; }
        }
