@charset "UTF-8";

/* =========================================
   1. Base & Reset
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary: #f2a93b;
    --primary-dark: #d35400;
    --bg: #faf7f2;
    --dark: #241c15;
    --danger: #ff4a4a;
    --success: #27ae60;
    --info: #3498db;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    margin: 0; padding: 0; background-color: var(--bg); color: #333;
    -webkit-text-size-adjust: 100%; font-size: 15px; padding-bottom: 90px;
    line-height: 1.6; width: 100%; overflow-x: hidden;
}

input, select, textarea, button { font-size: 16px !important; touch-action: manipulation; }

/* =========================================
   2. Header & Layout
   ========================================= */
header {
    background-color: var(--dark); color: #fff; padding: 12px 16px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); width: 100%;
}
header h1 { margin: 0; font-size: 18px; font-weight: 700; }
header p { margin: 4px 0 0; font-size: 11px; opacity: 0.85; }

.main-header {
    background-color: var(--dark); color: #fff; padding: 12px 16px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); border-bottom: 1px solid #333;
}
.logo-area { display: flex; align-items: center; justify-content: space-between; }
.main-header h1 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: 1px; font-family: 'Arial Black', sans-serif; }
.live-dot { color: var(--danger); font-size: 10px; font-weight: bold; animation: blink 2s infinite; border: 1px solid var(--danger); padding: 2px 6px; border-radius: 4px; }
.main-header p { margin: 4px 0 0; font-size: 10px; opacity: 0.7; }

main { max-width: 800px; margin: 0 auto; padding: 16px 12px; width: 100%; }
.list-main { padding: 0 0 20px 0; }

/* =========================================
   3. Common Components
   ========================================= */
section, .card {
    background-color: #fff; border-radius: 16px; padding: 20px; margin-bottom: 20px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.02); width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
section:hover { box-shadow: var(--shadow-lg); }
section h2 { margin-top: 0; font-size: 16px; border-left: 5px solid var(--primary); padding-left: 10px; color: var(--dark); margin-bottom: 16px; }

label { display: block; font-size: 14px; margin-top: 16px; margin-bottom: 6px; font-weight: 700; color: #555; }
input[type="text"], textarea, select {
    width: 100%; border-radius: 12px; border: 1px solid #ddd0c1; padding: 12px 14px;
    font-size: 16px; background-color: #fbf9f6; transition: all 0.2s;
}
input[type="text"]:focus, textarea:focus, select:focus {
    background-color: #fff; border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.2);
}
textarea { resize: vertical; min-height: 100px; }

/* Radio Buttons */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; width: 100%; }
.radio-group label {
    margin: 0; display: flex; align-items: center; justify-content: center; background-color: #fff; border: 2px solid #eaddcf; border-radius: 12px; padding: 14px 4px; text-align: center; font-size: 13px; font-weight: 700; color: #888; cursor: pointer; transition: all 0.2s; position: relative; user-select: none;
}
.radio-group input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-group label:has(input:checked) { background-color: #fff8f0; border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 2px 6px rgba(242, 169, 59, 0.25); z-index: 1; transform: scale(1.02); }

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-group label { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background-color: #f3ebe1; font-size: 13px; font-weight: 500; color: #555; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; }
.chip input { margin: 0; }
.chip:has(input:checked) { background-color: var(--primary); color: var(--dark); font-weight: 700; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transform: scale(1.05); }

/* Buttons */
.btn {
    display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; border-radius: 12px; border: none; cursor: pointer; font-size: 16px; font-weight: 700; background-color: var(--primary); color: var(--dark); margin-top: 16px; box-shadow: 0 3px 0 rgba(210, 140, 30, 1); transition: all 0.15s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(210, 140, 30, 1); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.secondary { background-color: #ece1d4; color: #444; box-shadow: 0 3px 0 #d6c6b3; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* =========================================
   4. Toast Notifications
   ========================================= */
.toast-container {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none; width: 90%; max-width: 400px;
}
.toast {
    background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease-out; display: flex; align-items: center; gap: 10px;
    pointer-events: auto;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast-icon { font-size: 18px; }
.toast-out { animation: toastOut 0.3s ease-in forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }

/* =========================================
   5. Step Indicator
   ========================================= */
.step-indicator {
    display: flex; justify-content: space-between; padding: 16px 0; margin-bottom: 16px;
    border-bottom: 1px solid #eee; position: relative;
}
.step-indicator::before {
    content: ''; position: absolute; top: 28px; left: 10%; right: 10%;
    height: 2px; background: #eee; z-index: 0;
}
.step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; z-index: 1; flex: 1;
}
.step-num {
    width: 28px; height: 28px; border-radius: 50%; background: #eee; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; transition: all 0.3s;
}
.step-label { font-size: 10px; color: #aaa; font-weight: 600; transition: all 0.3s; }
.step.active .step-num { background: var(--primary); color: var(--dark); box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.3); }
.step.active .step-label { color: var(--primary-dark); }
.step.done .step-num { background: var(--success); color: #fff; }
.step.done .step-label { color: var(--success); }

/* =========================================
   6. Audio Visualizer
   ========================================= */
.audio-visualizer {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 3px; height: 50px; padding: 10px; background: var(--dark);
    border-radius: 12px; margin: 16px 0;
}
.viz-bar {
    width: 4px; background: var(--primary); border-radius: 2px;
    animation: vizPulse 0.5s ease-in-out infinite alternate;
}
.viz-bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.viz-bar:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.viz-bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.viz-bar:nth-child(4) { height: 60%; animation-delay: 0.3s; }
.viz-bar:nth-child(5) { height: 90%; animation-delay: 0.15s; }
.viz-bar:nth-child(6) { height: 40%; animation-delay: 0.25s; }
.viz-bar:nth-child(7) { height: 70%; animation-delay: 0.05s; }
.viz-bar:nth-child(8) { height: 30%; animation-delay: 0.35s; }
.viz-bar:nth-child(9) { height: 85%; animation-delay: 0.12s; }
.viz-bar:nth-child(10) { height: 55%; animation-delay: 0.22s; }
.viz-bar:nth-child(11) { height: 45%; animation-delay: 0.08s; }
.viz-bar:nth-child(12) { height: 75%; animation-delay: 0.18s; }

@keyframes vizPulse {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

.visualizer-paused .viz-bar { animation-play-state: paused; opacity: 0.3; }

/* =========================================
   7. Reaction Buttons
   ========================================= */
.reaction-bar {
    display: flex; justify-content: center; gap: 16px; padding: 16px;
    background: #fff; border-radius: 12px; margin: 16px 0;
    box-shadow: var(--shadow);
}
.reaction-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px 16px;
    border-radius: 12px; transition: all 0.2s;
}
.reaction-btn:hover { background: #f5f5f5; transform: scale(1.1); }
.reaction-btn:active { transform: scale(0.95); }
.reaction-btn .emoji { font-size: 28px; transition: transform 0.2s; }
.reaction-btn .count { font-size: 11px; color: #888; font-weight: 600; }
.reaction-btn.active .emoji { animation: bounce 0.5s; }

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Floating Reactions */
.floating-reaction {
    position: fixed; font-size: 32px; pointer-events: none;
    animation: floatUp 2s ease-out forwards; z-index: 999;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-200px) scale(0.5); }
}

/* =========================================
   8. Progress Bar Improved
   ========================================= */
.progress-container {
    position: relative; margin: 20px 0;
}
.progress-bar {
    height: 8px; background: #444; border-radius: 99px; overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--info), var(--primary));
    border-radius: 99px; transition: width 0.3s; position: relative;
}
.progress-fill::after {
    content: ''; position: absolute; right: 0; top: -4px;
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.progress-markers {
    display: flex; justify-content: space-between; margin-top: 8px;
    font-size: 10px; color: #888;
}
.progress-marker { position: relative; }
.progress-marker.free { color: var(--info); }
.progress-marker.paid { color: var(--primary); }
.paywall-line {
    position: absolute; left: 16.67%; top: 0; bottom: 0; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--primary) 0, var(--primary) 4px, transparent 4px, transparent 8px);
}

/* =========================================
   9. Hero Section (Listener List)
   ========================================= */
.hero-section {
    background: #fff; padding: 20px 0 24px 0; margin-bottom: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}
.hero-heading { font-size: 14px; font-weight: 800; color: var(--dark); margin: 0 0 12px 16px; display: flex; align-items: center; }
.hero-scroll {
    display: flex; overflow-x: auto; gap: 12px; padding: 0 16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hero-scroll::-webkit-scrollbar { display: none; }

.hero-card {
    min-width: 85%; height: 200px; border-radius: 16px; scroll-snap-align: center; position: relative; text-decoration: none; color: #fff; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.2); flex-shrink: 0;
    background-size: cover; background-position: center; transition: transform 0.3s;
}
.hero-card:hover { transform: scale(1.02); }
.hero-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
}
.hero-badge { background: var(--danger); font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 4px; margin-bottom: 6px; display: inline-block; animation: pulse 2s infinite; }
.hero-store { font-size: 11px; opacity: 0.9; margin-bottom: 4px; }
.hero-title { font-size: 18px; font-weight: 800; margin: 0 0 4px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dj { font-size: 12px; opacity: 0.8; }
.hero-spacer { min-width: 4px; }

/* Heat Indicator */
.heat-indicator {
    display: flex; align-items: center; gap: 4px; font-size: 10px;
    background: rgba(255,74,74,0.9); padding: 2px 8px; border-radius: 99px;
    position: absolute; top: 10px; right: 10px;
}
.heat-bar { display: flex; gap: 2px; }
.heat-bar span { width: 3px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 1px; }
.heat-bar span.active { background: #fff; }

/* =========================================
   10. Search & Filter Area
   ========================================= */
.search-area { padding: 0 16px 16px 16px; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-select { width: 35%; font-size: 13px; padding: 10px 4px; border-radius: 8px; background: #fff; border: 1px solid #ddd; }
.search-row input { width: 65%; border-radius: 8px; border: 1px solid #ddd; padding: 10px; font-size: 14px; }

/* Area Filter Tabs */
.area-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.area-tabs::-webkit-scrollbar { display: none; }
.area-tab {
    padding: 6px 14px; background: #fff; border: 1px solid #ddd;
    border-radius: 99px; font-size: 12px; color: #666; white-space: nowrap;
    cursor: pointer; transition: all 0.2s; font-weight: 600;
}
.area-tab:hover { border-color: var(--primary); }
.area-tab.active { background: var(--dark); color: var(--primary); border-color: var(--dark); }

.radio-pill-group { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.radio-pill-group button { background: #fff; border: 1px solid #ddd; border-radius: 99px; padding: 6px 14px; font-size: 12px; color: #666; cursor: pointer; transition: all 0.2s; white-space: nowrap; font-weight: 600; }
.radio-pill-group button.active { background: var(--dark); color: var(--primary); border-color: var(--dark); }

/* =========================================
   11. Show Grid & Cards
   ========================================= */
.list-heading { font-size: 15px; font-weight: 700; margin: 20px 16px 12px 16px; display: flex; align-items: center; justify-content: space-between; color: #555; }
.list-heading .count { font-size: 11px; background: #eaddcf; padding: 2px 8px; border-radius: 99px; color: #444; }
.show-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }

.show-card {
    background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.show-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.show-card:active { transform: scale(0.98); }

.card-thumb {
    height: 110px; position: relative; display: flex; align-items: flex-end; padding: 6px;
    background-size: cover; background-position: center;
}
.live-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.6); color: #fff; font-size: 9px; font-weight: bold; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.3); }
.live-badge.hot { background: var(--danger); animation: pulse 1.5s infinite; }
.store-name { display: inline-block; background: rgba(0,0,0,0.8); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 13px; margin: 0 0 4px 0; line-height: 1.4; font-weight: 700; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em; }
.card-meta { margin-bottom: auto; }
.radio-name { font-size: 10px; color: #888; display: block; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; border-top: 1px solid #f5f5f5; padding-top: 6px; }
.listener-badge { font-size: 10px; color: #666; font-weight: 600; }
.no-result { text-align: center; padding: 30px; font-size: 13px; color: #999; }

/* =========================================
   12. Player Screen
   ========================================= */
.player-header {
    color: #fff; padding: 20px; border-radius: 16px 16px 0 0; margin: -20px -20px 20px -20px; position: relative;
    min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
}
.archive-badge { background: #fff; color: #333; font-weight:bold; font-size:11px; padding: 4px 10px; border-radius: 99px; display: inline-block; margin-bottom: 8px; }
.live-badge-in-header { background: var(--danger); color: #fff; font-size: 10px; font-weight: bold; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; width: fit-content; animation: blink 2s infinite; }

/* Audio Player */
.audio-box { background-color: var(--dark); color: #fff; border-radius: 16px; padding: 16px 20px; margin-top: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); width: 100%; }
.audio-box p { color: #ccc; font-size: 13px; }
.timeline { position: relative; height: 8px; border-radius: 99px; background: #444; margin-top: 24px; margin-bottom: 12px; }
.timeline::before { content: "無料"; position: absolute; left: 0; top: -18px; font-size: 10px; color: #aaa; }
.timeline::after { content: "有料"; position: absolute; right: 0; top: -18px; font-size: 10px; color: #888; }
.audio-box .btn.secondary { background-color: var(--primary); color: var(--dark); font-weight: 800; border-radius: 99px; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.lock-note { text-align: center; font-size: 12px; color: var(--primary); margin-top: 12px; padding: 12px; background: rgba(242,169,59,0.1); border-radius: 8px; }

/* =========================================
   13. Host Console
   ========================================= */
.timer-display { font-size: 48px; font-family: 'SF Mono', 'Monaco', monospace; font-weight: 700; text-align: center; margin: 4px 0; color: var(--dark); letter-spacing: 2px; }
.remain-display { text-align: center; font-size: 13px; color: #888; margin-bottom: 12px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.badge-standby { background: #f39c12; color: #fff; }
.badge-rec { background: var(--danger); color: #fff; animation: blink 1.5s infinite; }
.badge-air { background: var(--info); color: #fff; }
.badge-archive { background: #9b59b6; color: #fff; }

.listener-count { text-align: center; font-size: 13px; color: #666; background: #fff; padding: 6px 12px; border-radius: 99px; border: 1px solid #eee; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.btn-delete { background-color: #fff0f0; color: #d32f2f; border: 1px solid #ffcccc; box-shadow: none; padding: 12px; font-size: 14px; }
.btn-delete:active { background-color: #ffcccc; transform: translateY(2px); }

.btn-big-rec { 
    width: 100px; height: 100px; border-radius: 50%; background: var(--danger); 
    border: 5px solid #fff; box-shadow: 0 0 0 5px var(--danger), 0 10px 30px rgba(0,0,0,0.3); 
    margin: 24px auto; display: flex; align-items: center; justify-content: center; 
    color: white; font-size: 13px; font-weight: bold; cursor: pointer; 
    transition: transform 0.15s, box-shadow 0.15s; text-align: center; line-height: 1.3;
}
.btn-big-rec:hover { transform: scale(1.05); box-shadow: 0 0 0 5px var(--danger), 0 0 20px rgba(255,74,74,0.5), 0 15px 40px rgba(0,0,0,0.3); }
.btn-big-rec:active { transform: scale(0.95); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.checkout-box { background-color: #fcf8e3; border: 2px solid #faebcc; padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }

/* Money Box */
.money-box { background: linear-gradient(135deg, #fff9c4 0%, #fff176 100%); border: 1px solid #fdd835; padding: 16px; border-radius: 12px; text-align: center; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.money-label { font-size: 12px; color: #f57f17; font-weight: bold; margin-bottom: 4px; display: block; }
.money-amount { font-size: 32px; font-weight: 800; color: #e65100; font-family: sans-serif; display: block; line-height: 1.2; }
.money-sub { font-size: 11px; color: #f9a825; }
.mode-badge { display: block; text-align: center; padding: 10px; border-radius: 8px; font-weight: bold; color: #fff; margin-bottom: 8px; transition: all 0.3s; }
.mode-free { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 2px 5px rgba(79, 172, 254, 0.3); }
.mode-paid { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); box-shadow: 0 2px 5px rgba(246, 211, 101, 0.3); animation: pulse-gold 2s infinite; }

/* Share Buttons */
.share-buttons {
    display: flex; gap: 8px; margin-top: 12px;
}
.share-btn {
    flex: 1; padding: 10px; border: none; border-radius: 8px;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.share-btn.twitter { background: #1DA1F2; color: #fff; }
.share-btn.line { background: #00B900; color: #fff; }
.share-btn.copy { background: #ece1d4; color: #444; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

/* =========================================
   14. Store Admin Dashboard
   ========================================= */
.admin-body { background-color: #f0f2f5; }
.admin-header { background-color: #fff; border-bottom: 1px solid #ddd; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.header-status { background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 4px; font-weight: bold; font-size: 12px; border: 1px solid #c8e6c9; }
.admin-summary { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; }
.summary-card { flex: 1; background: #fff; padding: 12px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); min-width: 100px; border: 1px solid #ddd; text-align: center; transition: transform 0.2s; }
.summary-card:hover { transform: translateY(-2px); }
.summary-card.highlight { border-color: #f39c12; background: linear-gradient(135deg, #fffdf5, #fff8e1); animation: pulseHighlight 2s infinite; }
.summary-card .val { display: block; font-size: 20px; font-weight: bold; color: #333; }

@keyframes pulseHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(243,156,18,0); }
}

.admin-card { background: #fff; border-radius: 12px; margin-bottom: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #ddd; display: flex; flex-direction: column; overflow: hidden; transition: all 0.2s; }
.admin-card:hover { box-shadow: var(--shadow-lg); }
.admin-card.status-on_air { border-left: 5px solid var(--danger); }
.admin-card.status-checkout_wait { border-left: 5px solid #f39c12; background-color: #fffaf0; animation: checkoutPulse 2s infinite; }
.admin-card.status-vacant { border-left: 5px solid #ddd; opacity: 0.7; }
.admin-card.status-vacant:hover { opacity: 1; }

@keyframes checkoutPulse {
    0%, 100% { background-color: #fffaf0; }
    50% { background-color: #fff3cd; }
}

.admin-card-header { padding: 10px 12px; background: #f9f9f9; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.table-name { font-weight: bold; font-size: 14px; color: #333; }
.admin-card-body { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.admin-card-body.centered { align-items: center; justify-content: center; text-align: center; padding: 20px; }
.session-info { margin-bottom: 12px; }
.radio-title { font-weight: 700; font-size: 14px; color: #333; margin: 0 0 4px 0; }
.radio-meta { font-size: 11px; color: #888; margin: 0; }
.money-box-mini { background: #fff; border: 2px solid #eee; border-radius: 8px; padding: 10px; text-align: center; margin-bottom: 12px; }
.status-checkout_wait .money-box-mini { border-color: #f39c12; background: linear-gradient(135deg, #fff, #fff8e1); box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2); }
.money-box-mini .label { font-size: 10px; color: #888; display: block; margin-bottom: 2px; }
.money-box-mini .amount { font-size: 22px; font-weight: 800; color: #333; display: block; line-height: 1.2; }
.status-checkout_wait .money-box-mini .amount { color: #e67e22; font-size: 26px; }
.money-box-mini .sub { font-size: 10px; color: #aaa; display: block; }
.notice-text { font-size: 11px; color: var(--primary-dark); margin: 0 0 8px 0; font-weight: bold; text-align: center; }
.action-area { margin-top: auto; }

/* Time elapsed */
.time-elapsed {
    font-size: 11px; color: #888; text-align: center;
    padding: 6px; background: #f5f5f5; border-radius: 6px; margin-bottom: 8px;
}
.time-elapsed strong { color: #333; }

/* =========================================
   15. Utility & Nav
   ========================================= */
.small-note { font-size: 12px; color: #888; line-height: 1.5; }
.notice { font-size: 12px; color: #666; background: #f0f0f0; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.tag-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background-color: #fff; border: 1px solid #ddd; font-size: 11px; margin-right: 4px; margin-top: 4px; color: #666; transition: all 0.2s; }
.tag-badge:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #eee; display: flex; justify-content: space-around; padding: 10px 0 20px; z-index: 90; box-shadow: 0 -2px 10px rgba(0,0,0,0.03); }
.bottom-nav a { text-decoration: none; color: #aaa; font-size: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; transition: all 0.2s; }
.bottom-nav a:hover { color: #666; }
.bottom-nav a.active { color: var(--primary); font-weight: bold; }

/* Refresh indicator */
.refresh-indicator {
    text-align: center; padding: 8px; font-size: 11px; color: #aaa;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.refresh-indicator .spinner {
    width: 12px; height: 12px; border: 2px solid #ddd;
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =========================================
   16. Animations
   ========================================= */
@keyframes blink { 50% { opacity: 0.6; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(253, 160, 133, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(253, 160, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 160, 133, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in animation for cards */
.fade-in { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Connection status */
.connection-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #888; padding: 4px 8px;
    background: #f5f5f5; border-radius: 99px;
}
.connection-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--success);
}
.connection-dot.warning { background: #f39c12; animation: blink 1s infinite; }
.connection-dot.error { background: var(--danger); }

/* =========================================
   17. Tip Section (投げ銭)
   ========================================= */
.tip-section {
    margin-top: 24px;
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.tip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tip-icon {
    font-size: 32px;
    animation: tipBounce 2s ease-in-out infinite;
}

@keyframes tipBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tip-text {
    text-align: left;
}

.tip-text strong {
    display: block;
    font-size: 16px;
    color: var(--primary-dark);
}

.tip-text .tip-sub {
    font-size: 12px;
    color: #888;
}

.tip-total {
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.tip-total strong {
    font-size: 20px;
    color: var(--primary-dark);
}

.tip-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.tip-btn {
    position: relative;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tip-btn:hover {
    border-color: var(--primary);
    background: #fffaf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242,169,59,0.2);
}

.tip-btn:active {
    transform: translateY(0);
}

.tip-btn.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
}

.tip-btn.premium {
    border-color: #ffd54f;
    background: linear-gradient(135deg, #fffde7, #fff9c4);
}

.tip-btn .tip-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.tip-btn.premium .tip-badge {
    background: transparent;
    font-size: 14px;
}

.tip-btn .tip-amount {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
}

.tip-btn .tip-yen {
    font-size: 11px;
    color: #888;
}

.tip-btn.tipped {
    animation: tipSuccess 0.5s ease;
    background: var(--primary);
    border-color: var(--primary);
}

.tip-btn.tipped .tip-amount,
.tip-btn.tipped .tip-yen {
    color: #fff;
}

@keyframes tipSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.tip-note {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* Tip float animation */
.tip-float {
    animation: tipFloatUp 2.5s ease-out forwards !important;
}

@keyframes tipFloatUp {
    0% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50px) scale(1.1);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-120px) scale(0.8);
    }
}
