:root { color-scheme: light; --ink:#173042; --muted:#526675; --line:#c9d5dc; --bg:#f4f7f9; --panel:#fff; --brand:#0b4f71; --brand-dark:#083b54; --focus:#f0a900; --selected:#dceff6; --video:#4e3b12; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:system-ui,-apple-system,"Noto Sans JP","Yu Gothic",sans-serif; line-height:1.6; }
.wrap { width:min(100% - 32px, 980px); margin:0 auto; }
.site-header { background:var(--brand); color:white; border-bottom:4px solid #e4a400; }
.header-inner { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.service-label,.section-label { margin:0; font-size:.78rem; font-weight:700; letter-spacing:.08em; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:0; font-size:1.45rem; } h2 { margin-bottom:4px; font-size:1.25rem; line-height:1.35; }
.button { border:2px solid transparent; border-radius:4px; padding:9px 16px; font:inherit; font-weight:700; cursor:pointer; }
.button-primary { background:#fff; color:var(--brand-dark); } .button-primary:hover { background:#eaf2f6; }
button:focus-visible,input:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.main-content { padding:28px 0 52px; }
.drop-zone { border:2px dashed #7d97a6; border-radius:6px; background:#fff; padding:26px; text-align:center; }
.drop-zone.is-dragging { border-color:var(--brand); background:#e8f2f6; } .drop-icon { color:var(--brand); font-size:2.2rem; line-height:1; }
.drop-zone h2 { margin:6px 0 3px; } .drop-zone p { margin-bottom:3px; color:var(--muted); } .help-text { font-size:.85rem; }
.player-panel,.library-section { margin-top:22px; background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:22px; }
.video-stage { margin:0 0 18px; background:#17242c; border-radius:4px; overflow:hidden; aspect-ratio:16 / 9; display:grid; place-items:center; }
.video-stage video { display:block; width:100%; height:100%; max-height:min(58vh,520px); background:#17242c; }
.section-label { color:var(--brand); } .muted,.status { color:var(--muted); } .now-playing { min-height:82px; }
.progress-row { display:grid; grid-template-columns:42px 1fr 42px; gap:10px; align-items:center; font-size:.82rem; color:var(--muted); }
input[type=range] { accent-color:var(--brand); width:100%; }
.controls { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:14px; }
.icon-button,.play-button { min-height:44px; border:1px solid var(--brand); border-radius:4px; background:#fff; color:var(--brand-dark); padding:8px 14px; font:inherit; cursor:pointer; }
.play-button { min-width:96px; background:var(--brand); color:#fff; font-weight:700; } .icon-button:disabled,.play-button:disabled { opacity:.45; cursor:not-allowed; }
.shuffle-button[aria-pressed="true"] { background:var(--brand-dark); color:#fff; }
.volume-control { display:flex; align-items:center; gap:8px; margin-left:14px; font-size:.9rem; } .volume-control input { width:100px; }
.status { margin:14px 0 0; font-size:.9rem; text-align:center; }
.library-heading { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:12px; } .count { color:var(--muted); font-size:.85rem; font-weight:400; }
.search-box { display:flex; align-items:center; gap:8px; font-size:.9rem; color:var(--muted); } .search-box input { width:min(280px,45vw); padding:8px 10px; border:1px solid #8196a3; border-radius:4px; font:inherit; }
.track-list { list-style:none; padding:0; margin:0; border-top:1px solid var(--line); }
.track-item { border-bottom:1px solid var(--line); }
.track-button { width:100%; min-height:48px; display:grid; grid-template-columns:28px auto minmax(0,1fr) minmax(0,38%); align-items:center; gap:12px; border:0; padding:10px 8px; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.track-button:hover,.track-button.is-current { background:var(--selected); } .track-button.is-current { box-shadow:inset 4px 0 0 var(--brand); }
.track-number { color:var(--muted); text-align:right; } .track-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; } .track-folder { color:var(--muted); font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-kind { min-width:42px; border:1px solid currentColor; border-radius:3px; padding:1px 5px; color:var(--brand-dark); font-size:.72rem; font-weight:700; letter-spacing:.04em; text-align:center; } .media-kind.video { color:var(--video); }
.empty-message { margin:16px 0 0; color:var(--muted); } .site-footer { padding:18px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
@media (max-width:620px) { .wrap { width:min(100% - 24px, 980px); } .header-inner { align-items:flex-start; padding:14px 0; } .button { min-height:44px; padding:8px 10px; } .library-heading { display:block; } .search-box { margin-top:12px; } .search-box input { width:100%; } .track-button { grid-template-columns:24px auto minmax(0,1fr); gap:8px; } .track-folder { display:none; } .controls { flex-wrap:wrap; gap:8px; } .volume-control { width:100%; margin:4px 0 0; justify-content:center; } .volume-control input { max-width:200px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
