/* Shinema Admin Styles (Hydro Design System) v0.3 */
.shinema-wrap { padding: 20px; font-family: Inter, system-ui, -apple-system, sans-serif; color: #0f1720; background: #ffffff; max-width: 1000px; margin: 20px auto; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
:root.hydro-dark .shinema-wrap { background: #0f1720; color: #e6eef6; border: 1px solid rgba(255,255,255,0.06); }
@media (prefers-color-scheme: dark) {
    .shinema-wrap { --bg: #0f1720; --card: rgba(18,20,24,0.88); --text: #e6eef6; --muted: #9aa4b2; --border: rgba(255,255,255,0.1); }
}

.shinema-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; border-bottom: 1px solid var(--border, #e6e9ee); padding-bottom: 16px; }
.shinema-header h1 { margin: 0; font-size: 24px; font-weight: 700; background: linear-gradient(90deg, #06b6d4, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.shinema-version { background: #f3f4f6; color: #6b7280; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.shinema-card { background: var(--card, #fff); border: 1px solid var(--border, #e6e9ee); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.shinema-card h2 { margin-top: 0; font-size: 18px; color: var(--text, #0f1720); display: flex; align-items: center; gap: 8px; }

.shinema-form-group { margin-bottom: 16px; }
.shinema-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text, #0f1720); font-size: 14px; }
.shinema-desc { font-size: 13px; color: var(--muted, #6b7280); margin-bottom: 8px; }

/* Toggle Switch */
.shinema-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.shinema-switch input { opacity: 0; width: 0; height: 0; }
.shinema-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.shinema-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .shinema-slider { background: linear-gradient(90deg, #06b6d4, #7c3aed); }
input:checked + .shinema-slider:before { transform: translateX(20px); }

.shinema-btn { background: linear-gradient(90deg, #06b6d4, #7c3aed); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; transition: opacity 0.2s; }
.shinema-btn:hover { opacity: 0.9; }

/* Frontend Styles */
body.shinema-active { overflow: hidden; }
.shinema-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; backdrop-filter: blur(2px); }
body.shinema-active .shinema-overlay { opacity: 1; visibility: visible; }
.shinema-video-target { position: relative; z-index: 9999; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 0 80px rgba(0,0,0,0.7); border-radius: 8px; }
body.shinema-active .shinema-video-target { transform: scale(1.02); }

.shinema-controls-left { position: fixed; bottom: 20px; left: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.shinema-controls-right { position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.shinema-fab { width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: #333; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.2s ease; }
.shinema-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.shinema-fab.dark { background: #222; color: #fff; }

.shinema-oshi-panel { display: flex; gap: 8px; background: rgba(255,255,255,0.95); padding: 8px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: right center; opacity: 1; transform: scaleX(1); margin-bottom: 6px;}
.shinema-oshi-panel.closed { opacity: 0; transform: scaleX(0); width: 0; padding: 0; pointer-events: none; margin: 0; overflow: hidden; }
.shinema-oshi-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
.shinema-oshi-btn:hover { transform: scale(1.2); z-index: 2; }

/* Loading Animation for Random Dice */
.shinema-loading { animation: spin 0.8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
