/* Shared site styles. Theme tokens are defined once below. Rule order preserves the original responsive behavior. */
:root {
  --bg-base: #171819;
  --bg-surface: #202224;
  --bg-surface-hover: #2b2e31;
  --accent: #a9bce0;
  --accent-hover: #c4d2ec;
  --text-primary: #efefec;
  --text-secondary: #adb0b5;
  --radius-lg: 10px;
  --radius-md: 6px;
  --transition: 0.3s ease;
  --border-color: #383b3f;
  --input-bg: #1b1d1f;
  --header-bg: #171819;
  --shadow-sm: 0 2px 6px rgb(0 0 0 / 10%);
  --shadow-lg: 0 12px 36px rgb(0 0 0 / 24%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --press-scale: .975;
  --action-bg: #365b96;
  --action-hover: #2c4d83;
}

body.light-mode {
  --bg-base: #fafaf8;
  --bg-surface: #fff;
  --bg-surface-hover: #f0f0ec;
  --accent: #365b96;
  --accent-hover: #294777;
  --text-primary: #232528;
  --text-secondary: #62666d;
  --border-color: #dedfda;
  --input-bg: #fff;
  --header-bg: #fafaf8;
  --shadow-sm: 0 2px 6px rgb(0 0 0 / 5%);
  --shadow-lg: 0 12px 36px rgb(0 0 0 / 12%);
}

    .notice-bar {
      background: var(--accent);
      color: white;
      padding: 10px 5%;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      display: none;
      position: relative;
      z-index: 101;
      animation: slideDown 0.3s ease-out;
      cursor: pointer;
    }
    .notice-bar.active { display: block; }
    @keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

    /* 공지사항 전용 스타일 */
    .notice-list-item {
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 24px;
      margin-bottom: 16px;
      cursor: pointer;
      transition: var(--transition);
    }
    .notice-list-item:hover { background: var(--bg-surface-hover); }
    .notice-list-item h3 { margin-bottom: 8px; color: var(--accent); }
    .notice-list-item .meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
    .notice-list-item .content { font-size: 15px; line-height: 1.6; }
    .notice-list-item .content { white-space: normal; overflow-wrap: anywhere; }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-base); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; transition: background-color var(--transition), color var(--transition); }

    header { background: var(--header-bg); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); padding: 16px 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
    .logo-area { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
    .logo { text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(to right, #6366f1, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; cursor: pointer; }
    
    .category-tabs { display: flex; gap: 8px; }
    .cat-btn { background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: var(--transition); font-size: 14px; font-weight: 600; }
    .cat-btn:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
    .cat-btn.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

    .top-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex: 0 1 auto; flex-wrap: wrap; margin-left: auto; }
    .nav-btn { text-decoration: none; background: transparent; border: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
    .nav-btn:hover, .nav-btn.active { color: var(--text-primary); background: var(--bg-surface-hover); }
    .nav-btn.primary { background: var(--accent); color: white; }
    
    .user-avatar-mini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-surface-hover); border: 1px solid var(--border-color); }

    .page { display: none; padding: 40px 5%; max-width: 1200px; margin: 0 auto; animation: fadeIn 0.4s ease forwards; }
    .page.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    .card-container { max-width: 600px; margin: 0 auto; background: var(--bg-surface); padding: 32px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
    .card-container h2 { margin-bottom: 24px; font-size: 24px; }
    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }
    .form-group input:not([type="hidden"]):not([type="checkbox"]), .form-group textarea, .form-group select { width: 100%; padding: 14px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 15px; outline: none; transition: 0.2s; }
    .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
    .release-date-fields { display: grid; grid-template-columns: minmax(110px, 1.25fr) minmax(82px, 1fr) minmax(82px, 1fr); gap: 8px; }
    .release-date-fields.year-only { grid-template-columns: minmax(140px, 220px); }
    .release-date-fields.year-only .release-month-day { display: none; }
    .release-date-help { margin-top: 7px; color: var(--text-secondary); font-size: 12px; }
    .action-btn { width: 100%; padding: 16px; border: none; border-radius: 8px; background: var(--accent); color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; }
    .action-btn:hover { background: var(--accent-hover); }
    button:disabled { cursor: not-allowed; opacity: 0.65; transform: none !important; }
    :where(button, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .form-error { min-height: 20px; margin-top: 12px; color: #f87171; font-size: 13px; text-align: center; }
    .skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: white; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
    .skip-link:focus { top: 12px; }
    .site-footer { padding: 0; color: white; text-align: left; }
    .footer-contact-banner { width: 100vw; min-height: 170px; margin: 36px 0 0 calc(50% - 50vw); padding: 26px max(5%, calc((100% - 1200px) / 2)); background: linear-gradient(135deg, #5b4df4, #8b3ff2 55%, #b455ff); color: white; }
    .footer-contact-inner { display: grid; grid-template-columns: minmax(280px, 1.5fr) minmax(160px, .75fr) minmax(220px, .95fr); gap: 34px; max-width: 1200px; min-height: 118px; margin: 0 auto; align-items: start; }
    .footer-brand { display: flex; align-items: flex-start; gap: 14px; min-width: 0; align-self: start; }
    .footer-brand img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,.22); flex-shrink: 0; }
    .footer-brand-title { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
    .footer-brand-subtitle { margin-top: 6px; color: rgba(255,255,255,.80); font-size: 14px; line-height: 1.5; }
    .footer-link-group { display: flex; flex-direction: column; gap: 9px; }
    .footer-link-group h4 { margin: 0 0 4px; color: rgba(255,255,255,.72); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
    .footer-link-group a { color: white; text-decoration: none; font-size: 12px; font-weight: 750; opacity: .92; }
    .footer-link-group a:hover { text-decoration: underline; opacity: 1; }
    .footer-contact-box { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 18px; min-height: 100%; text-align: right; }
    .footer-contact-mail { display: block; color: white !important; margin: 10px 0 0 !important; font-weight: 800; overflow-wrap: anywhere; }
    .policy-section { margin-bottom: 36px; scroll-margin-top: 110px; }
    .policy-section h3 { margin-bottom: 12px; }
    .policy-section > div { color: var(--text-secondary); line-height: 1.7; }
    .policy-section p { margin: 0 0 8px; line-height: 1.7; color: var(--text-secondary); }
    .policy-section li { margin: 0 0 6px; line-height: 1.7; color: var(--text-secondary); }
    .policy-section h1, .policy-section h2, .policy-section h3 { margin: 18px 0 10px; color: var(--text-primary); }
    .policy-section blockquote { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--input-bg); color: var(--text-secondary); }
    .policy-section code { padding: 2px 5px; border-radius: 5px; background: var(--input-bg); }
    .policy-section ul,
    .policy-section ol {
      margin: 6px 0 12px;
      padding-left: 1.25em;
      list-style-position: outside;
    }
    .policy-section ul ul,
    .policy-section ul ol,
    .policy-section ol ul,
    .policy-section ol ol {
      margin: 4px 0 6px;
      padding-left: 1.2em;
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
    .action-btn.danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

    .rating-dist { margin-bottom: 32px; }
    .dist-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
    .dist-label { width: 40px; text-align: right; font-weight: bold; }
    .dist-bar-bg { flex: 1; height: 10px; background: var(--input-bg); border-radius: 5px; overflow: hidden; }
    .dist-bar-fill { height: 100%; background: var(--accent); border-radius: 5px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .dist-count { width: 30px; color: var(--text-secondary); font-size: 13px; }
    .dist-column-wrap { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: stretch; }
    .dist-y-axis { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 18px 0 22px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
    .dist-y-unit { position: absolute; top: 0; right: 0; color: var(--text-secondary); font-size: 11px; font-weight: 800; line-height: 1; }
    .dist-column-chart { min-height: 190px; display: grid; grid-template-rows: 1fr auto; gap: 8px; }
    .dist-columns { display: grid; grid-template-columns: repeat(10, minmax(12px, 1fr)); gap: 7px; align-items: end; padding: 8px 6px 0; border-left: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: linear-gradient(to top, rgba(148, 163, 184, .12) 1px, transparent 1px) 0 0 / 100% 25%; }
    .dist-column { min-height: 4px; border-radius: 8px 8px 0 0; background: var(--accent); transition: height .35s ease; position: relative; }
    .dist-column.empty { background: var(--input-bg); opacity: .75; }
    .dist-column-count { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); color: var(--text-secondary); font-size: 11px; font-weight: 800; line-height: 1; }
    .dist-x-axis { display: grid; grid-template-columns: repeat(10, minmax(12px, 1fr)); gap: 7px; padding: 0 6px; color: var(--text-secondary); font-size: 12px; font-weight: 800; text-align: center; }
    .dist-x-axis span:nth-child(odd) { color: transparent; }

    .detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 32px; align-items: flex-start; }
    @media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
    .sidebar-section { position: sticky; top: 100px; }
    .mini-work-card { color: inherit; text-decoration: none; display: flex; gap: 16px; margin-bottom: 16px; cursor: pointer; padding: 12px; border-radius: var(--radius-md); transition: var(--transition); background: var(--bg-surface); border: 1px solid var(--border-color); }
    .mini-work-card:hover { background: var(--bg-surface-hover); }
    .mini-cover { width: 70px; height: 70px; border-radius: 8px; object-fit: contain; background: var(--bg-surface-hover); flex-shrink: 0; }
    .mini-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
    .mini-info h4 { font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mini-info p { font-size: 13px; color: var(--text-secondary); }

    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
    .page-num { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600; transition: 0.2s; background: var(--bg-surface); }
    .page-num:hover { border-color: var(--accent); color: var(--accent); }
    .page-num.active { background: var(--accent); color: white; border-color: var(--accent); }
    .page-num:disabled { opacity: .38; cursor: not-allowed; color: var(--text-secondary); border-color: var(--border-color); }
    .search-results-groups { display: flex; flex-direction: column; gap: 44px; }
    .search-category-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
    .search-category-section h3 { margin: 0; font-size: 22px; }
    .search-result-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
    .search-result-grid.collapsed .search-result-card:nth-child(n+9) { display: none; }
    .search-result-card { min-width: 0; color: inherit; text-decoration: none; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-surface); overflow: hidden; transition: var(--transition); }
    .search-result-card:hover { box-shadow: var(--shadow-sm); }
    .search-result-cover { position: relative; aspect-ratio: 2 / 3; background: var(--bg-surface-hover); overflow: hidden; }
    .search-result-card[data-work-category="music"] .search-result-cover { aspect-ratio: 1 / 1; }
    .search-result-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .search-result-info { padding: 9px; }
    .search-result-info h4 { margin: 0 0 4px; font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .search-result-info p { margin: 0; color: var(--text-secondary); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .search-more-btn { flex: 0 0 auto; border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 13px; background: var(--bg-surface); color: var(--text-primary); font-weight: 800; cursor: pointer; }
    .search-more-btn:hover { border-color: var(--accent); color: var(--accent); }

    .album-slider { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 160px; align-items: start; overflow-x: auto; gap: 24px; padding-bottom: 20px; scroll-snap-type: x mandatory; }
    .album-slider::-webkit-scrollbar { display: none; }
    .album-slider .album-card { width: 160px; scroll-snap-align: start; }
    .album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; }
    
    #genreGrid, .my-reviewed-row {
      grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
      gap: 16px;
    }
    .my-reviewed-section { margin-bottom: 30px; }
    .my-reviewed-section h4 { margin-bottom: 14px; color: var(--accent); font-size: 18px; }
    .my-reviewed-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; gap: 14px; padding-bottom: 10px; }
    .my-reviewed-row .album-card { width: 100%; min-width: 0; }
    
    .album-card { color: inherit; text-decoration: none; border: 0; text-align: left; cursor: pointer; transition: var(--transition); border-radius: var(--radius-md); overflow: hidden; position: relative; display: flex; flex-direction: column; background: var(--bg-surface); }
    .album-card:hover { opacity: .98; }
    
    .album-cover { width: 100%; aspect-ratio: 2 / 3; background-color: var(--bg-surface-hover); position: relative; overflow: hidden; }
    body[data-category="music"] .album-cover { aspect-ratio: 1 / 1; }
    .album-card[data-work-category="music"] .album-cover { aspect-ratio: 1 / 1; }
    .album-card[data-work-category="movie"] .album-cover,
    .album-card[data-work-category="game"] .album-cover { aspect-ratio: 2 / 3; }
    
    .album-cover img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease; }
    .album-card:hover .album-cover img { opacity: 0.92; }
    
    .album-info { padding: 12px; }
    .album-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
    .album-info p { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .avg-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; font-weight: bold; padding: 4px 8px; border-radius: 8px; font-size: 10px; backdrop-filter: blur(4px); z-index: 2; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }

    .slider-wrapper { position: relative; margin-bottom: 20px; }
    .recommendation-reason { margin: -10px 0 16px; color: var(--text-secondary); font-size: 13px; }
    .scroll-btn { position: absolute; top: 40%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(15, 23, 42, 0.8); color: white; border: 1px solid var(--border-color); border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: 0.3s; opacity: 0; font-size: 18px; }
    .slider-wrapper:hover .scroll-btn { opacity: 1; }
    .scroll-btn:hover { background: var(--accent); border-color: var(--accent); }
    .scroll-btn.left { left: -22px; }
    .scroll-btn.right { right: -22px; }
    @media (max-width: 768px) { .scroll-btn { display: none; } }

    .detail-hero { display: flex; gap: 40px; background: var(--bg-surface); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); margin-bottom: 24px; }
    @media (max-width: 768px) { .detail-hero { flex-direction: column; } }
    .hero-cover { flex-shrink: 0; width: 240px; aspect-ratio: 2 / 3; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
    body[data-category="music"] .hero-cover { aspect-ratio: 1 / 1; }
    .detail-hero[data-work-category="music"] .hero-cover { aspect-ratio: 1 / 1; }
    .detail-hero[data-work-category="movie"] .hero-cover,
    .detail-hero[data-work-category="game"] .hero-cover { aspect-ratio: 2 / 3; }
    .hero-cover img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-surface-hover); }
    .detail-cover-rating { display: none; }
    .hero-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 260px; padding-right: 220px; }
    .hero-info h2 { font-size: 42px; font-weight: 800; margin-bottom: 8px; line-height: 1.1; }
    .hero-info h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 8px; }
    .detail-rating-card { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 16px 22px; border-radius: 18px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.10); }
    .detail-rating-card .rating-star { color: #fbbf24; font-size: 42px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(251,191,36,.28)); }
    .detail-rating-card .rating-value { display:block; color: var(--text-primary); font-size: 34px; font-weight: 900; line-height: 1; }
    .detail-rating-card .rating-sub { display:block; margin-top: 4px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
    .meta-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
    .tag { background: var(--input-bg); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; border: 1px solid var(--border-color); }
    .tag.star { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }

    .interactive-rating { display: inline-flex; font-size: 32px; color: var(--border-color); cursor: pointer; gap: 6px; padding: 4px 0; }
    .interactive-rating .star { position: relative; }
    .interactive-rating .star::after { content: '★'; position: absolute; left: 0; top: 0; color: #fbbf24; overflow: hidden; width: 0%; pointer-events: none; }
    .interactive-rating .star.full::after { width: 100%; }
    .interactive-rating .star.half::after { width: 50%; }

    .editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
    .editor-toolbar button { background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-primary); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: var(--transition); }
    .editor-toolbar button:hover { background: var(--bg-surface-hover); color: var(--accent); border-color: var(--accent); }
    .editor-color-control { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 9px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--input-bg); font-size: 13px; font-weight: 600; cursor: pointer; }
    .editor-color-control input { width: 28px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
    #reviewInputSection { width: 100%; max-width: min(100%, 980px); }
    #reviewEditor { width: 100%; min-height: 240px; max-height: 65vh; overflow-y: auto; padding: 16px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
    #reviewEditor:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,242,.14); }
    #reviewEditor:empty::before { content: attr(data-placeholder); color: var(--text-secondary); pointer-events: none; }
    #reviewEditor blockquote { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 6px; background: var(--bg-surface-hover); color: var(--text-secondary); }
    #reviewEditor h3 { margin: 14px 0 8px; font-size: 20px; }
    #noticeEditor { width: 100%; min-height: 180px; max-height: 55vh; overflow-y: auto; padding: 16px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
    #noticeEditor:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,242,.14); }
    #noticeEditor:empty::before { content: attr(data-placeholder); color: var(--text-secondary); pointer-events: none; }
    #suggestionEditor { width: 100%; min-height: 220px; max-height: 60vh; overflow-y: auto; padding: 16px; background: var(--input-bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
    #suggestionEditor:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,109,242,.14); }
    #suggestionEditor:empty::before { content: attr(data-placeholder); color: var(--text-secondary); pointer-events: none; }

    .review-item-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
    .review-header { display: flex; justify-content: space-between; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
    .review-user-info { display: flex; align-items: center; gap: 12px; font-weight: 600; }
    .author-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
    .author-link:hover .author-name { color: var(--accent); text-decoration: underline; }
    .author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-surface-hover); border: 1px solid var(--border-color); flex-shrink: 0; }
    .author-avatar.placeholder { display: inline-grid; place-items: center; color: var(--text-secondary); font-size: 12px; font-weight: 900; }
    .author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .review-body { font-size: 15px; line-height: 1.6; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; }
    .review-item-card.my-review { border-color: var(--accent); box-shadow: 0 8px 24px rgba(124,109,242,.12); }
    .my-review-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: white; font-size: 11px; font-weight: 800; }
    .review-body blockquote { border-left: 4px solid var(--accent); padding-left: 12px; color: var(--text-secondary); background: var(--input-bg); padding: 8px 12px; border-radius: 4px; }
    
    .spoiler-overlay { position: relative; cursor: pointer; }
    .spoiler-blur { filter: blur(12px); pointer-events: none; transition: 0.3s; }
    .spoiler-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); border-radius: 8px; font-weight: bold; z-index: 5; backdrop-filter: blur(2px); }
    .spoiler-msg button { padding: 10px 20px; border-radius: 8px; background: var(--accent); color: white; border: none; cursor: pointer; font-weight: bold; }

    .like-btn { border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); padding: 6px 14px; border-radius: 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; transition: var(--transition); }
    .like-btn.liked { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

    .genre-tag { display: inline-flex; align-items: center; padding: 6px 14px; background: var(--bg-surface-hover); border: 1px solid var(--border-color); border-radius: 20px; font-size: 14px; gap: 8px; }
    .genre-del-btn { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 18px; line-height: 1; }

    .radio-group { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
    .radio-item { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 24px; font-size: 14px; line-height: 18px; color: var(--text-secondary); transition: var(--transition); }
    .radio-item input { flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 0 !important; cursor: pointer; vertical-align: middle; }
    .radio-item span { display: inline-flex; align-items: center; min-height: 18px; }
    .radio-item:hover { color: var(--text-primary); }
    .radio-item input:checked + span { color: var(--accent); font-weight: bold; }

    .admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .admin-table th, .admin-table td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
    .admin-table th { color: var(--text-secondary); font-weight: 600; }

    .signup-genres {
      margin-top: 16px;
      padding: 16px;
      background: var(--bg-base);
      border-radius: 8px;
      border: 1px solid var(--border-color);
    }
    .signup-genres h4 { font-size: 14px; margin-bottom: 10px; color: var(--accent); }
    .genre-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .genre-checkbox-label { 
      font-size: 12px; 
      padding: 4px 10px; 
      border: 1px solid var(--border-color); 
      border-radius: 15px; 
      cursor: pointer; 
      transition: 0.2s;
      background: var(--bg-surface);
    }
    .genre-checkbox-label input { display: none; }
    .genre-checkbox-label:has(input:checked) { 
      background: var(--accent); 
      color: white; 
      border-color: var(--accent); 
    }
    .genre-choice-group { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 8px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--input-bg); }
    .genre-choice-btn { border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 14px; background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; font-weight: 700; }
    .genre-choice-btn.active { border-color: var(--accent); background: var(--accent); color: white; }
    .notice-admin-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
    .notice-admin-actions button { border: 1px solid var(--border-color); border-radius: 8px; padding: 7px 10px; background: var(--bg-base); color: var(--text-primary); cursor: pointer; }
    .admin-action-menu { position: relative; display: inline-block; z-index: 15; }
    .admin-action-menu[open] { z-index: 60; }
    .admin-action-menu > summary { list-style: none; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-surface-hover); color: var(--text-primary); font-size: 13px; font-weight: 700; cursor: pointer; user-select: none; }
    .admin-action-menu > summary::-webkit-details-marker { display: none; }
    .admin-action-menu > summary::after { content: '▾'; font-size: 11px; transition: transform .18s ease; }
    .admin-action-menu[open] > summary::after { transform: rotate(180deg); }
    .admin-action-menu-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; display: grid; gap: 4px; min-width: 190px; padding: 7px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-surface); box-shadow: var(--shadow-lg); }
    .admin-action-menu-list button { width: 100%; min-height: 36px; border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; }
    .admin-action-menu-list button:hover { background: var(--bg-surface-hover); }
    .admin-action-menu-list button.danger-text { color: #f87171 !important; }
    .admin-table .admin-action-menu-list { position: static; margin-top: 6px; }
    .review-actions .admin-action-menu { margin-left: auto; }
    .entity-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--text-secondary); }
    .entity-link:hover { color: var(--accent); border-color: var(--accent); }
    .entity-hero { margin-bottom: 28px; padding: 28px; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface); }
    .entity-hero p { margin-top: 9px; color: var(--text-secondary); }
    .entity-hero-content { display: flex; align-items: center; gap: 26px; }
    .entity-photo-wrap { width: 180px; flex: 0 0 180px; text-align: center; }
    .entity-photo, .entity-photo-placeholder { width: 180px; height: 180px; border-radius: 18px; border: 1px solid var(--border-color); background: var(--bg-surface-hover); }
    .entity-photo { display: block; object-fit: cover; }
    .entity-photo-placeholder { display: grid; place-items: center; color: var(--text-secondary); font-size: 44px; font-weight: 800; }
    .entity-photo-button { width: 100%; margin-top: 10px; }
    .entity-hero-info { min-width: 0; flex: 1; }
    .entity-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
    .user-profile-hero { display:flex; gap:24px; align-items:center; padding:28px; border:1px solid var(--border-color); border-radius:18px; background:var(--bg-surface); margin-bottom:28px; }
    .user-profile-avatar { width:120px; height:120px; border-radius:50%; object-fit:cover; border:2px solid var(--border-color); background:var(--bg-surface-hover); flex-shrink:0; }
    .user-profile-avatar.placeholder { display:grid; place-items:center; color:var(--text-secondary); font-size:34px; font-weight:900; }
    .user-favorites { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:12px; margin:18px 0 0; }
    .user-favorite-card { padding:13px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-base); }

    .best-review-card { color: inherit; height: 560px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 24px; padding: 28px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
    .best-review-card::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #fbbf24, var(--accent)); }
    .best-review-kicker { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 6px 10px; border-radius: 999px; background: rgba(251,191,36,.12); color: #fbbf24; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
    .best-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .best-review-author { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .best-review-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .best-review-author-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .best-review-rating { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: rgba(251,191,36,.1); color: #fbbf24; font-weight: 800; }
    .best-review-card .rev-text { min-height: 0; position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--border-color); border-radius: 16px; background: color-mix(in srgb, var(--bg-base) 76%, transparent); font-size: 16px; line-height: 1.85; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
    .best-review-work { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; color: inherit; padding-top: 2px; }
    .best-review-work img { width: 72px; height: 96px; flex-shrink: 0; border-radius: 10px; object-fit: contain; background: var(--bg-surface-hover); border: 1px solid var(--border-color); }
    .best-review-work[data-work-category="music"] img { height: 72px; }
    .best-review-work-info { min-width: 0; }
    .best-review-work-info h4 { margin-bottom: 4px; font-size: 17px; overflow-wrap: anywhere; }
    .best-review-work-info p { color: var(--text-secondary); overflow-wrap: anywhere; }
    .best-review-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border-radius: 10px; background: var(--accent); color: white; text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
    .best-review-cta:hover { background: var(--accent-hover); }
    .best-review-slider { display: flex; align-items: flex-start; overflow-x: auto; gap: 24px; padding: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .best-review-slider::-webkit-scrollbar { display: none; }
    .best-review-slider .best-review-card { flex: 0 0 min(880px, calc(100vw - 96px)); margin-bottom: 0; scroll-snap-align: start; }

    .genre-list-view {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .genre-item-row {
      color: inherit;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px 16px;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: var(--transition);
    }
    .genre-item-row:hover {
      background: var(--bg-surface-hover);
      border-color: var(--accent);
    }
    .genre-item-row img {
      width: 54px;
      height: 54px;
      border-radius: 6px;
      object-fit: contain;
      background: var(--bg-surface-hover);
      flex-shrink: 0;
    }
    .genre-item-body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }
    .genre-item-body h4 {
      font-size: 15px;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .genre-item-body p {
      font-size: 13px;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .genre-item-meta {
      text-align: right;
      flex-shrink: 0;
    }
    .genre-item-rating {
      font-weight: 800;
      color: #fbbf24;
      font-size: 15px;
    }
    .genre-item-label {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 2px;
    }

    @media (max-width: 768px) {
      .best-review-card { height: 520px; padding: 20px; gap: 15px; border-radius: 18px; }
      .best-review-slider .best-review-card { flex-basis: calc(100vw - 48px); }
      .best-review-card .rev-text { padding: 17px; font-size: 15px; }
      .best-review-work img { width: 62px; height: 84px; }
      .best-review-work[data-work-category="music"] img { height: 62px; }
      .best-review-work { grid-template-columns: 62px minmax(0, 1fr); }
      .best-review-cta { grid-column: 1 / -1; width: 100%; }
    }

    .search-wrapper { display: flex; align-items: center; position: relative; margin-right: 8px; }
    #searchInput { width: 0; padding: 0; border: none; background: var(--input-bg); color: var(--text-primary); border-radius: 20px; transition: width 0.3s ease, padding 0.3s ease, border 0.1s; outline: none; font-size: 14px; }
    #searchInput.active { width: 220px; padding: 8px 16px; border: 1px solid var(--border-color); }
    #searchInput.active:focus { border-color: var(--accent); }

    #imagePreview { width: min(100%, 420px); min-height: 200px; aspect-ratio: 2 / 3; background-color: var(--bg-surface-hover); border-radius: 12px; margin: 0 auto 16px; background-size: contain; background-repeat: no-repeat; background-position: center; border: 2px dashed var(--border-color); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 20px; outline: none; transition: aspect-ratio 0.2s ease, width 0.2s ease; }
    
    #previewPlaceholder { color: var(--text-secondary); font-size: 14px; text-align: center; }
    input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(1);
      cursor: pointer;
      opacity: 0.8;
      transition: 0.2s;
    }
    input[type="date"]::-webkit-calendar-picker-indicator:hover {
      opacity: 1;
      transform: scale(1.1);
    }
    body.light-mode input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(0);
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(8px);
      z-index: 1000;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding-top: 100px;
      animation: fadeIn 0.3s ease;
    }
    .modal-overlay.active { display: flex; }
    .modal-container {
      width: 90%;
      max-width: 800px;
      background: var(--bg-surface);
      border-radius: var(--radius-lg);
      padding: 40px;
      border: 1px solid var(--border-color);
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
    .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
    .modal-close { font-size: 28px; cursor: pointer; color: var(--text-secondary); transition: 0.2s; background: none; border: 0; line-height: 1; padding: 4px; }
    .modal-close:hover { color: var(--text-primary); }
    #modalSearchInput {
      width: 100%;
      padding: 20px;
      font-size: 18px;
      background: var(--input-bg);
      border: 2px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      outline: none;
      transition: 0.2s;
    }
    #modalSearchInput:focus { border-color: var(--accent); }

    .genre-chips-wrapper {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      overflow: visible;
      padding: 10px 0;
    }
    .genre-chip {
      padding: 10px 20px;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: 25px;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition:
        transform 140ms var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        opacity 160ms ease;
      white-space: nowrap;
    }
    .genre-chip:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
    .genre-chip.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    @media (max-width: 640px) {
      header { position: static; padding: 12px 16px; align-items: flex-start; }
      .logo-area, .top-actions { width: 100%; }
      .logo-area { gap: 12px; }
      .category-tabs { width: 100%; overflow-x: auto; padding-bottom: 2px; }
      .top-actions { gap: 4px; }
      .nav-btn { padding: 8px 10px; }
      .page { padding: 24px 16px; }
      .card-container, .detail-hero, .modal-container { padding: 20px; }
      .hero-cover { width: min(100%, 240px); margin: 0 auto; }
      .hero-info h2 { font-size: 30px; overflow-wrap: anywhere; }
      .detail-layout { gap: 24px; }
      .review-item-card { padding: 18px; }
      .row { flex-direction: column; gap: 0 !important; }
      #my-page-page .card-container > div:first-child { flex-direction: column; text-align: center; }
      .admin-table { min-width: 620px; }
      .card-container:has(.admin-table) { overflow-x: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    /* 2026 UI refresh */

    body { line-height: 1.55; background-image: radial-gradient(circle at 20% -10%, rgba(124,109,242,.12), transparent 32rem); }
    header { min-height: 72px; padding: 12px max(5%, calc((100% - 1200px) / 2)); flex-wrap: nowrap; gap: 20px; box-shadow: 0 1px 0 var(--border-color); }
    .logo-area { flex: 1 1 auto; flex-wrap: nowrap; gap: 18px; min-width: 0; }
    .logo { font-size: 20px; white-space: nowrap; }
    .category-tabs { padding: 4px; gap: 3px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--border-color); }
    .cat-btn { border: 0; padding: 8px 13px; background: transparent; }
    .cat-btn.active { box-shadow: 0 5px 14px rgba(124,109,242,.25); }
    .top-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 3px; justify-content: flex-end; margin-left: auto; }
    .nav-btn { min-height: 40px; padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
    .nav-btn.primary { box-shadow: 0 8px 20px rgba(124,109,242,.24); }
    .page { padding-top: 48px; padding-bottom: 64px; }
    .card-container { box-shadow: var(--shadow-sm); border-color: var(--border-color); }
    .action-btn { min-height: 48px; border-radius: 11px; box-shadow: 0 8px 20px rgba(124,109,242,.18); }
    .action-btn:hover { }
    .form-group input:not([type="hidden"]):not([type="checkbox"]), .form-group textarea, .form-group select {
      min-height: 48px; border-radius: 11px; background: color-mix(in srgb, var(--input-bg) 88%, transparent);
    }
    .album-card { border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
    .album-card:hover { box-shadow: var(--shadow-lg); }
    .album-info { padding: 14px; }
    .review-item-card { padding: 26px; border-radius: 18px; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
    .review-item-card:hover { border-color: rgba(124,109,242,.38); }
    .review-header { align-items: center; border: 0; padding: 0; }
    .review-score { padding: 5px 10px; border-radius: 999px; background: rgba(251,191,36,.1); color: #fbbf24; font-weight: 700; }
    .review-actions { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; flex-wrap: wrap; }
    .review-list-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; padding: 12px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-surface); }
    .review-list-controls label { color: var(--text-secondary); font-size: 12px; font-weight: 700; }
    .review-list-controls select { min-height: 38px; padding: 7px 10px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--input-bg); color: var(--text-primary); }
    .review-draft-status { min-height: 18px; margin-top: 7px; color: var(--text-secondary); font-size: 12px; text-align: right; }
    .review-item-card.review-focused { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.16), var(--shadow-sm); }
    .review-comments { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); }
    .review-comment { padding: 12px; margin-bottom: 8px; border-radius: 11px; background: var(--input-bg); }
    .review-comment.reply { margin-left: 28px; border-left: 3px solid var(--accent); }
    .review-comment-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; color: var(--text-secondary); }
    .review-comment-head .author-link { gap: 7px; color: var(--text-primary); font-size: 13px; }
    .review-comment-head .author-avatar { width: 26px; height: 26px; }
    .review-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
    .review-comment-actions { display: flex; gap: 6px; margin-top: 7px; }
    .review-comment-actions button { border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; }
    .comment-compose { display: grid; gap: 8px; margin-top: 12px; }
    .comment-compose textarea { width: 100%; min-height: 76px; resize: vertical; padding: 10px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--input-bg); color: var(--text-primary); }
    .comment-compose-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
    .comment-reply-target { color: var(--accent); font-size: 12px; }
    .notification-list { display: grid; gap: 9px; }
    .notification-item { padding: 13px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-surface); }
    .notification-item.unread { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg-surface)); }
    .notification-item-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
    .notification-item p { color: var(--text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
    .profile-notification-anchor { position: relative; }
    .notification-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; display: none; align-items: center; justify-content: center; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; border: 2px solid var(--bg-base); box-shadow: 0 4px 10px rgba(239,68,68,.35); }
    .admin-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 24px; overflow-x: auto; border: 1px solid var(--border-color); background: var(--bg-surface); border-radius: 14px; }
    .admin-tab { border: 0; background: transparent; color: var(--text-secondary); padding: 10px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; font-weight: 700; }
    .admin-tab.active { color: white; background: var(--accent); }
    .admin-panel-hidden { display: none !important; }
    .admin-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
    .admin-stat-card { padding: 18px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-surface-hover); }
    .admin-stat-card span { display: block; color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
    .admin-stat-card strong { display: block; font-size: 28px; line-height: 1; }
    .admin-health-list { display: grid; gap: 10px; }
    .admin-health-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-base); }
    .admin-health-item.warning { border-color: rgba(251,191,36,.55); background: rgba(251,191,36,.08); }
    .admin-health-item.danger { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.08); }
    .admin-health-item .meta { color: var(--text-secondary); font-size: 13px; margin-top: 3px; }
    .moderation-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
    .moderation-step { padding: 16px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-surface-hover); }
    .moderation-step strong { display:block; margin-bottom: 6px; color: var(--accent); }
    .moderation-step p { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
    .admin-table tbody tr { transition: background .2s ease; }
    .admin-table tbody tr:hover { background: var(--bg-surface-hover); }
    .toast-stack { position: fixed; z-index: 1500; right: 22px; bottom: 22px; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
    .toast { pointer-events: auto; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 13px; background: color-mix(in srgb, var(--bg-surface) 94%, transparent); color: var(--text-primary); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); animation: toastIn .24s ease; }
    .toast.error { border-color: rgba(239,68,68,.45); }
    .toast.success { border-color: rgba(34,197,94,.45); }
    @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
    .skeleton-grid { display: contents; }
    .skeleton-card { flex: 0 0 160px; min-height: 220px; border-radius: 14px; background: linear-gradient(100deg, var(--bg-surface) 25%, var(--bg-surface-hover) 45%, var(--bg-surface) 65%); background-size: 200% 100%; animation: shimmer 1.25s infinite linear; border: 1px solid var(--border-color); }
    @keyframes shimmer { to { background-position-x: -200%; } }
    .mobile-header-btn, .mobile-menu-close { display: none !important; }
    .mobile-nav, .mobile-nav-backdrop { display: none; }
    #mobileProfileBtn { display: none !important; }
    .floating-theme-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 130; width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 50%; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-lg); cursor: pointer; font-size: 20px; }
    .floating-theme-toggle:hover { background: var(--accent); color: white; }
    /* Base64 이미지가 많은 환경에서 합성·재페인트 비용을 줄인다. */
    header, .mobile-nav, .toast { backdrop-filter: none; }
    header { background: var(--bg-base); }
    .album-card, .genre-item-row { content-visibility: auto; contain-intrinsic-size: 220px; contain: layout paint style; }
    .review-item-card { overflow: visible; contain: none; }
    .review-item-card:hover { transform: none; }
    .skeleton-card { animation: none; background-size: 100% 100%; }
    .toast { background: var(--bg-surface); }
    .home-section-tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 8px 0 28px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-surface); }
    .home-section-tab { border: 0; padding: 10px 20px; border-radius: 10px; background: transparent; color: var(--text-secondary); font-weight: 700; cursor: pointer; }
    .home-section-tab.active { color: white; background: var(--accent); }
    .home-panel-hidden { display: none; }
    .section-title { margin-bottom: 18px; font-size: 22px; }
    .filter-toggle { display: none; }
    .home-filter-drawer { margin-bottom: 18px; }
    .filter-drawer-header { display: none; }
    .home-genre-controls { display: grid; gap: 12px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-surface); }
    .home-region-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 24px; }
    .region-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .region-chip { border: 1px solid var(--border-color); border-radius: 999px; padding: 8px 14px; background: var(--input-bg); color: var(--text-secondary); cursor: pointer; font-weight: 700; }
    .region-chip.active { border-color: var(--accent); background: var(--accent); color: white; }
    .latest-review-section { margin-top: 36px; }
    .latest-review-list { display: grid; gap: 12px; }
    .latest-review-item { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; padding: 14px 22px 14px 14px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-surface); color: inherit; text-decoration: none; transition: var(--transition); }
    .latest-review-item:hover { border-color: var(--accent); background: var(--bg-surface-hover); }
    .latest-review-work { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; min-width: 0; }
    .latest-review-work img { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: var(--bg-surface-hover); border: 1px solid var(--border-color); }
    .latest-review-work h4 { margin: 0 0 3px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .latest-review-work p, .latest-review-meta { margin: 0; color: var(--text-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .latest-review-snippet { min-width: 0; padding-right: 8px; color: var(--text-primary); font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* UI polish: 기능은 유지하고 메인 화면 밀도와 아이콘 톤만 정리 */

    body {
      letter-spacing: -0.01em;
      background-image:
        radial-gradient(circle at 18% -8%, rgba(124,109,242,.10), transparent 30rem),
        radial-gradient(circle at 90% 8%, rgba(56,189,248,.045), transparent 28rem);
    }

    header {
      min-height: 68px;
      box-shadow: none;
      border-bottom-color: color-mix(in srgb, var(--border-color) 82%, transparent);
    }

    .nav-btn,
    .cat-btn,
    .home-section-tab,
    .region-chip,
    .search-more-btn {
      transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    }

    .nav-btn.primary,
    .action-btn,
    .cat-btn.active,
    .home-section-tab.active,
    .region-chip.active {
      box-shadow: none;
    }

    .page {
      max-width: 1180px;
      padding-top: 42px;
    }

    #home-page {
      max-width: 1160px;
    }

    #bestReviewSection,
    .home-panel,
    .latest-review-section {
      margin-bottom: 42px;
    }

    .home-section-tabs {
      margin: 2px 0 22px;
      padding: 4px;
      border-radius: 12px;
      background: color-mix(in srgb, var(--bg-surface) 88%, var(--bg-base));
    }

    .home-section-tab {
      min-height: 38px;
      padding: 8px 18px;
      border-radius: 9px;
      font-size: 14px;
    }

    .section-title {
      margin-bottom: 16px;
      font-size: 21px;
      font-weight: 850;
      letter-spacing: -0.035em;
    }

    .slider-wrapper {
      margin-bottom: 12px;
    }

    .album-slider {
      grid-auto-columns: 148px;
      gap: 18px;
      padding: 2px 2px 16px;
    }

    .album-slider .album-card {
      width: 148px;
    }

    .album-grid {
      grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
      gap: 18px;
    }

    .album-card {
      border-radius: 14px;
      box-shadow: none;
      background: color-mix(in srgb, var(--bg-surface) 96%, var(--bg-base));
      transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .album-card:hover {
      border-color: color-mix(in srgb, var(--accent) 38%, var(--border-color));
      box-shadow: none;
      transform: translateY(-2px);
    }

    .album-cover {
      background: color-mix(in srgb, var(--bg-surface-hover) 70%, var(--bg-base));
    }

    .album-info {
      padding: 11px 11px 12px;
    }

    .album-info h3 {
      font-size: 13px;
      font-weight: 750;
      line-height: 1.32;
    }

    .album-info p {
      font-size: 11px;
      line-height: 1.35;
    }

    .home-genre-controls {
      padding: 12px;
      border-radius: 13px;
      background: color-mix(in srgb, var(--bg-surface) 88%, var(--bg-base));
    }

    .home-region-controls {
      margin: -10px 0 22px;
    }

    .region-chip {
      padding: 7px 13px;
      font-size: 13px;
      font-weight: 750;
    }

    .latest-review-section {
      margin-top: 44px;
      padding-top: 30px;
      border-top: 1px solid var(--border-color);
    }

    .latest-review-list {
      gap: 10px;
    }

    .latest-review-item {
      grid-template-columns: 220px 1fr;
      gap: 22px;
      padding: 12px 18px 12px 12px;
      border-radius: 14px;
      box-shadow: none;
      background: color-mix(in srgb, var(--bg-surface) 96%, var(--bg-base));
      transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .latest-review-item:hover {
      border-color: color-mix(in srgb, var(--accent) 36%, var(--border-color));
      background: var(--bg-surface-hover);
      transform: translateY(-1px);
    }

    .latest-review-work {
      grid-template-columns: 50px 1fr;
      gap: 11px;
    }

    .latest-review-work img {
      width: 50px;
      height: 50px;
      border-radius: 9px;
    }

    .latest-review-work h4 {
      font-size: 14px;
      font-weight: 800;
    }

    .latest-review-snippet {
      font-size: 13px;
      color: color-mix(in srgb, var(--text-primary) 88%, var(--text-secondary));
    }

    @media (max-width: 768px) {
      .mobile-nav a > span[aria-hidden="true"] {
        width: 30px;
        height: 30px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 30px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: color-mix(in srgb, var(--bg-surface-hover) 72%, transparent);
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
      }

      .mobile-nav a.active > span[aria-hidden="true"] {
        border-color: rgba(255,255,255,.24);
        background: rgba(255,255,255,.16);
        color: white;
      }
    }

    /* emil-design-eng: 빠르고 명확한 피드백, 정확한 transition, 터치 hover 방지 */

    .nav-btn,
    .cat-btn,
    .home-section-tab,
    .region-chip,
    .action-btn,
    .search-more-btn,
    .page-num,
    .genre-chip,
    .editor-toolbar button,
    .like-btn,
    .admin-action-menu > summary,
    .modal-close,
    .mobile-header-btn,
    .mobile-menu-close,
    .review-actions button,
    .review-comment-actions button {
      transition:
        transform 140ms var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        opacity 160ms ease;
    }

    .nav-btn:active,
    .cat-btn:active,
    .home-section-tab:active,
    .region-chip:active,
    .action-btn:active,
    .search-more-btn:active,
    .page-num:active,
    .genre-chip:active,
    .editor-toolbar button:active,
    .like-btn:active,
    .admin-action-menu > summary:active,
    .modal-close:active,
    .mobile-header-btn:active,
    .mobile-menu-close:active,
    .mobile-nav a:active,
    .review-actions button:active,
    .review-comment-actions button:active {
      transform: scale(var(--press-scale));
    }

    .album-card,
    .genre-item-row,
    .latest-review-item,
    .mini-work-card,
    .search-result-card,
    .notice-list-item,
    .review-item-card,
    .notification-item {
      transition:
        transform 180ms var(--ease-out),
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
    }

    .mobile-nav {
      transition: transform 240ms var(--ease-drawer);
      will-change: transform;
    }

    .mobile-nav-backdrop {
      transition: opacity 180ms ease;
    }

    .toast {
      animation: none;
      transition:
        opacity 180ms var(--ease-out),
        transform 180ms var(--ease-out),
        border-color 160ms ease,
        background-color 160ms ease;
    }

    @media (hover: hover) and (pointer: fine) {
      .album-card:hover {
        border-color: color-mix(in srgb, var(--accent) 38%, var(--border-color));
        box-shadow: none;
        transform: translateY(-2px);
      }

      .latest-review-item:hover,
      .search-result-card:hover,
      .notice-list-item:hover,
      .review-item-card:hover {
        transform: translateY(-1px);
      }

      .genre-item-row:hover,
      .mini-work-card:hover {
        transform: translateX(4px);
      }
    }

    @media (hover: none), (pointer: coarse) {
      .album-card:hover,
      .latest-review-item:hover,
      .search-result-card:hover,
      .notice-list-item:hover,
      .review-item-card:hover,
      .genre-item-row:hover,
      .mini-work-card:hover {
        transform: none;
      }
    }

    /* apple-design: 조용한 소재감, 큰 radius, 얇은 경계, 시스템 파란색 accent */

    body {
      background-color: var(--bg-base);
      background-image:
        radial-gradient(circle at 24% -12%, rgba(10,132,255,.16), transparent 32rem),
        radial-gradient(circle at 86% 0%, rgba(191,90,242,.08), transparent 30rem);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    header {
      background: var(--header-bg);
      border-bottom: 1px solid var(--border-color);
    }

    @supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
      header,
      .mobile-nav,
      .toast {
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
      }
    }

    .card-container,
    .album-card,
    .latest-review-item,
    .genre-item-row,
    .mini-work-card,
    .search-result-card,
    .notice-list-item,
    .review-item-card,
    .notification-item,
    .admin-tabs,
    .home-section-tabs,
    .home-genre-controls,
    .review-list-controls {
      border-color: var(--border-color);
      background: var(--bg-surface);
      box-shadow: var(--shadow-sm);
    }

    .card-container,
    .review-item-card {
      border-radius: var(--radius-lg);
    }

    .album-card,
    .latest-review-item,
    .genre-item-row,
    .mini-work-card,
    .search-result-card,
    .notice-list-item,
    .notification-item,
    .home-section-tabs,
    .home-genre-controls {
      border-radius: 18px;
    }

    .nav-btn,
    .cat-btn,
    .home-section-tab,
    .region-chip,
    .page-num,
    .search-more-btn {
      border-radius: 999px;
      font-weight: 700;
    }

    .nav-btn.primary,
    .action-btn,
    .cat-btn.active,
    .home-section-tab.active,
    .region-chip.active,
    .page-num.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .nav-btn.primary:hover,
    .action-btn:hover {
      background: var(--accent-hover);
    }

    .action-btn {
      border-radius: 14px;
      box-shadow: none;
    }

    .form-group input:not([type="hidden"]):not([type="checkbox"]),
    .form-group textarea,
    .form-group select,
    .comment-compose textarea,
    .review-list-controls select {
      border-radius: 14px;
      border-color: transparent;
      background: var(--input-bg);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
    }

    body.light-mode .form-group input:not([type="hidden"]):not([type="checkbox"]),
    body.light-mode .form-group textarea,
    body.light-mode .form-group select,
    body.light-mode .comment-compose textarea,
    body.light-mode .review-list-controls select {
      box-shadow: inset 0 0 0 1px rgba(60,60,67,.05);
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus,
    .comment-compose textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
    }

    .section-title,
    .card-container h2,
    #home-page h3 {
      letter-spacing: -0.045em;
    }

    .album-cover,
    .latest-review-work img,
    .search-result-cover,
    .mini-cover,
    .genre-item-row img {
      background: var(--input-bg);
    }

    .footer-contact-banner {
      background: linear-gradient(135deg, #111827, #1d1d1f 58%, #2c2c2e);
      border-top: 1px solid rgba(255,255,255,.10);
    }

    .mobile-nav {
      background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
      border-left-color: var(--border-color);
    }

    .mobile-nav a,
    .mobile-nav button:not(.mobile-menu-close) {
      border-radius: 16px;
    }

    .mobile-nav a.active {
      background: var(--accent);
    }

    .mobile-nav a > span[aria-hidden="true"] {
      border-radius: 11px;
      background: var(--input-bg);
    }

    .work-detail-list { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
    .work-detail-list div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
    .work-detail-list dt { font-weight: 800; color: var(--text-primary); }
    .album-meta-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--text-secondary); font-size: 11px; }
    .album-meta-row .album-genre-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .album-meta-row .album-review-count { flex: 0 0 auto; overflow: visible; white-space: nowrap; }
    .detail-hero .hero-cover { width: 200px; }
    .detail-hero[data-work-category="music"] .hero-cover { width: 200px; height: 200px; aspect-ratio: auto; }
    .work-detail-meta-text { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
    .work-detail-meta-text span + span::before { content: '·'; margin-right: 12px; color: var(--border-color); }
    .detail-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
    .danger-text { color: #f87171 !important; }
    .review-cta-bar { position: sticky; bottom: 18px; z-index: 40; width: max-content; max-width: 100%; margin: 26px auto; padding: 7px; border: 1px solid var(--border-color); border-radius: 15px; background: var(--bg-surface); box-shadow: var(--shadow-sm); text-align: center; }
    .policy-toc { position: sticky; top: 86px; z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; margin-bottom: 30px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-surface); }
    .policy-toc a { padding: 7px 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; }
    .policy-toc a:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
    .empty-state { grid-column: 1 / -1; padding: 52px 20px; border: 1px dashed var(--border-color); border-radius: 16px; color: var(--text-secondary); text-align: center; }
    .empty-state button { margin-top: 14px; }

    @media (max-width: 920px) {
      header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px 44px; align-items: center; padding: 12px 16px; gap: 8px; }
      .mobile-header-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--bg-surface); color: var(--text-primary); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-sm); }
      #mobileProfileBtn[style*="flex"] { display: inline-flex !important; }
      #mobileSearchBtn { grid-column: 1; grid-row: 1; justify-self: start; }
      #mobileProfileBtn { grid-column: 3; grid-row: 1; justify-self: end; padding: 0; overflow: hidden; }
      #mobileProfileBtn img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
      #mobileMenuToggleBtn { grid-column: 4; grid-row: 1; justify-self: end; }
      .logo-area { display: contents; }
      .logo { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: center; }
      .top-actions { display: none; }
      .category-tabs { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
      .cat-btn { flex: 1; min-width: max-content; }
      .page { padding: 28px 16px 64px; }
      .site-footer { padding-bottom: 40px; }
      .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 108; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
      .mobile-nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }
      .mobile-nav { position: fixed; display: flex; flex-direction: column; gap: 6px; top: 0; right: 0; bottom: 0; left: auto; z-index: 110; width: min(320px, 86vw); padding: calc(18px + env(safe-area-inset-top)) 16px 18px; border-left: 1px solid var(--border-color); background: var(--bg-surface); box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform 240ms var(--ease-drawer); will-change: transform; }
      .mobile-nav.open { transform: translateX(0); }
      .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); }
      .mobile-menu-title { font-size: 16px; font-weight: 800; }
      .mobile-menu-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--bg-surface-hover); color: var(--text-primary); font-size: 24px; cursor: pointer; }
      .mobile-nav a, .mobile-nav button:not(.mobile-menu-close) { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 48px; width: 100%; border: 0; background: transparent; color: var(--text-secondary); text-decoration: none; border-radius: 12px; padding: 0 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
      .mobile-nav a.active { color: white; background: var(--accent); }
      .mobile-nav a:hover, .mobile-nav button:not(.mobile-menu-close):hover { background: var(--bg-surface-hover); color: var(--text-primary); }
      .toast-stack { right: 16px; bottom: 24px; }
      .detail-hero { padding: 24px; gap: 24px; }
      .detail-hero .hero-cover { width: min(190px, 70vw); margin: 0 auto; }
      .detail-hero[data-work-category="music"] .hero-cover { width: min(190px, 70vw); height: min(190px, 70vw); aspect-ratio: auto; }
      .hero-info h2 { font-size: 32px; }
      .filter-toggle { display: inline-flex; align-items: center; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-surface); color: var(--text-primary); cursor: pointer; }
      .home-filter-drawer { position: fixed; left: 12px; right: 12px; bottom: 82px; z-index: 125; max-height: 55vh; overflow-y: auto; padding: 18px; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-surface); box-shadow: var(--shadow-lg); transform: translateY(calc(100% + 110px)); transition: transform 240ms var(--ease-drawer); will-change: transform; }
      .home-filter-drawer.open { transform: translateY(0); }
      .filter-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
      .filter-drawer-header button { border: 0; background: transparent; color: var(--text-primary); font-size: 24px; cursor: pointer; }
      .home-section-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
      .home-section-tab { padding-inline: 8px; }
      .review-cta-bar { bottom: 18px; }
      .policy-toc { top: 134px; overflow-x: auto; flex-wrap: nowrap; }
      .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
      .admin-table thead { display: none; }
      .admin-table tr { padding: 12px; margin-bottom: 12px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-base); }
      .admin-table td { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 9px 4px; border: 0; }
      .admin-table td::before { content: attr(data-label); color: var(--text-secondary); font-size: 12px; font-weight: 700; }
    }

    @media (max-width: 640px) {
      body { font-size: 15px; background-image: none; }
      header { position: sticky; top: 0; min-height: 0; padding: 9px 12px; gap: 8px; }
      .logo { text-align: center; font-size: 18px; }
      .category-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 3px; overflow: visible; }
      .cat-btn { min-width: 0; padding: 8px 5px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .notice-bar { padding: 8px 12px; font-size: 12px; overflow-wrap: anywhere; }
      .page { width: 100%; max-width: 100%; padding: 20px 12px calc(44px + env(safe-area-inset-bottom)); overflow: visible; }
      .site-footer { font-size: 12px; }
      .footer-contact-banner { min-height: 0; margin: 18px 0 0 calc(50% - 50vw); padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
      .footer-contact-inner { display: grid; grid-template-columns: 1fr; gap: 12px; min-height: 0; }
      .footer-brand { align-items: flex-start; }
      .footer-brand img { width: 38px; height: 38px; border-radius: 12px; }
      .footer-brand-title { font-size: 16px; }
      .footer-brand-subtitle { display: none; }
      .footer-contact-box { align-items: flex-start; text-align: left; gap: 10px; width: 100%; }
      .footer-link-group { flex-direction: row; align-items: center; gap: 10px; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
      .footer-link-group::-webkit-scrollbar { display: none; }
      .footer-link-group h4 { flex: 0 0 auto; margin: 0 2px 0 0; font-size: 12px; }
      .footer-link-group a { flex: 0 0 auto; font-size: 11px; }
      .footer-contact-mail { font-size: 12px; }
      .search-result-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
      .search-result-grid.collapsed .search-result-card:nth-child(n+5) { display: none; }
      .search-category-header { align-items: flex-start; }
      .home-section-tabs { position: static; width: 100%; margin: 6px 0 22px; }
      .home-section-tab { min-width: 0; padding: 9px 5px; font-size: 13px; }
      .section-title { margin-bottom: 14px; font-size: 20px; }
      .latest-review-item { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
      .latest-review-work { grid-template-columns: 48px 1fr; }
      .latest-review-work img { width: 48px; height: 48px; }
      .recommendation-reason { margin: -7px 0 13px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
      .slider-wrapper { min-width: 0; margin-bottom: 16px; }
      .album-slider { grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(132px, 42vw); gap: 12px; padding: 2px 2px 14px; }
      .album-slider .album-card { width: 100%; }
      .album-card:hover { transform: none; box-shadow: var(--shadow-sm); }
      .album-info { padding: 10px; }
      .album-info h3 { font-size: 13px; }
      .album-info p { font-size: 11px; }
      .album-meta-row { display: flex; gap: 7px; margin-top: 7px; font-size: 10px; }
      .avg-badge { top: 7px; left: 7px; padding: 3px 6px; font-size: 9px; }
      .album-grid, #genreGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .my-reviewed-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .my-reviewed-row .album-card { width: 100%; }
      #bestReviewSection { margin-bottom: 30px !important; }
      #bestReviewSection > h3 { margin-bottom: 12px !important; font-size: 20px !important; }
      .best-review-slider { gap: 12px; padding: 2px; }
      .best-review-slider .best-review-card { flex-basis: calc(100vw - 28px); }
      .best-review-card { height: 500px; padding: 17px; gap: 13px; border-radius: 17px; }
      .best-review-kicker { padding: 5px 8px; font-size: 10px; }
      .best-review-heading { align-items: flex-start; gap: 10px; }
      .best-review-author { min-width: 0; gap: 8px; }
      .best-review-author img { width: 38px; height: 38px; }
      .best-review-author-name { max-width: 42vw; font-size: 13px; }
      .best-review-rating { padding: 5px 8px; font-size: 12px; }
      .best-review-card .rev-text { padding: 14px; border-radius: 12px; font-size: 14px; line-height: 1.72; }
      .best-review-work { gap: 11px; }
      .best-review-work img { width: 56px; height: 76px; }
      .best-review-work[data-work-category="music"] img { height: 56px; }
      .best-review-work-info h4 { font-size: 15px; }
      .best-review-work-info p, .best-review-cta { font-size: 12px; }
      .detail-hero { padding: 18px; gap: 18px; border-radius: 16px; }
      .detail-hero .hero-cover { width: min(170px, 62vw); position: relative; }
      .detail-hero[data-work-category="music"] .hero-cover { width: min(170px, 62vw); height: min(170px, 62vw); aspect-ratio: auto; }
      .hero-info { min-height: 0; padding-right: 0; }
      .hero-info h2 { font-size: 27px; line-height: 1.2; }
      .hero-info h3 { font-size: 17px; overflow-wrap: anywhere; }
      .detail-rating-card { display: none; }
      .detail-cover-rating { display: block; }
      .detail-rating-card .rating-star { font-size: 34px; }
      .detail-rating-card .rating-value { font-size: 28px; }
      .entity-hero { padding: 18px; }
      .entity-hero-content { align-items: flex-start; flex-direction: column; gap: 18px; }
      .entity-photo-wrap { width: min(180px, 60vw); flex-basis: auto; }
      .entity-photo, .entity-photo-placeholder { width: min(180px, 60vw); height: min(180px, 60vw); }
      .meta-tags { gap: 7px; }
      .tag { padding: 5px 9px; font-size: 12px; }
      .detail-layout { display: block; margin-top: 24px; }
      .main-content, .sidebar-section { min-width: 0; }
      .sidebar-section { position: static; margin-top: 30px; }
      .rating-dist { max-width: none; padding: 16px; }
      .review-cta-bar { left: 12px; right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); width: auto; max-width: none; margin: 20px 0; }
      .review-cta-bar .action-btn { width: 100% !important; padding: 12px 16px !important; }
      #reviewInputSection { width: 100%; max-width: 100%; padding: 16px; border-radius: 15px; }
      #reviewInputSection h3 { font-size: 18px; }
      .editor-toolbar { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: none; }
      .editor-toolbar::-webkit-scrollbar { display: none; }
      .editor-toolbar button { flex: 0 0 42px; min-height: 38px; padding: 6px; }
      .editor-color-control { flex: 0 0 auto; min-height: 38px; margin-bottom: 0 !important; }
      .release-date-fields { grid-template-columns: 1.2fr .9fr .9fr; gap: 6px; }
      .release-date-fields input, .release-date-fields select { min-width: 0; padding-inline: 8px !important; font-size: 13px !important; }
      #reviewEditor { min-height: 210px; max-height: 52vh; padding: 13px; font-size: 15px; }
      .review-form-actions { flex-direction: column; gap: 10px !important; }
      .review-form-actions .action-btn { flex: none !important; }
      .review-item-card { padding: 16px; margin-bottom: 14px; border-radius: 15px; }
      .review-header { align-items: flex-start; gap: 10px; }
      .review-user-info { min-width: 0; flex-wrap: wrap; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
      .review-score { flex-shrink: 0; padding: 4px 7px; font-size: 12px; }
      .review-body { font-size: 14px; line-height: 1.68; }
      .review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
      .review-actions button { width: 100%; min-width: 0; justify-content: center; padding: 8px 6px; white-space: normal; }
      .review-actions .admin-action-menu { grid-column: 1 / -1; width: 100%; margin-left: 0; }
      .review-actions .admin-action-menu > summary { width: 100%; }
      .review-actions .admin-action-menu-list { left: 0; right: 0; min-width: 0; }
      .review-comment.reply { margin-left: 14px; }
      .comment-compose-row { align-items: stretch; flex-direction: column; }
      .review-list-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
      .review-list-controls label { display: grid; gap: 5px; }
      .review-list-controls select { width: 100%; min-width: 0; }
      .pagination { justify-content: center; overflow-x: auto; padding-bottom: 5px; }
      .genre-item-row { gap: 10px; padding: 10px; }
      .genre-item-row img { width: 46px; height: 58px; }
      .genre-item-meta { max-width: 42%; }
      .genre-item-label { overflow-wrap: anywhere; }
      #search-page > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 12px; }
      #search-page > div:first-child h2 { font-size: 24px !important; }
      .modal-overlay { align-items: center; padding: 12px; }
      .modal-container { width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px; border-radius: 16px; }
      .toast-stack { left: 12px; right: 12px; bottom: calc(20px + env(safe-area-inset-bottom)); width: auto; }
      .mobile-nav { width: min(300px, 88vw); padding-inline: 14px; }
      .mobile-nav a, .mobile-nav button:not(.mobile-menu-close) { min-height: 47px; font-size: 14px; }
      .floating-theme-toggle { right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; font-size: 18px; }
    }

    @media (max-width: 360px) {
      .page { padding-inline: 10px; }
      .album-slider { grid-auto-columns: 44vw; }
      .best-review-slider .best-review-card { flex-basis: calc(100vw - 24px); }
      .review-actions { grid-template-columns: 1fr; }
    }
    .rich-textarea {
      width: 100%;
      min-height: 220px;
      padding: 16px;
      background: var(--input-bg);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font: inherit;
      line-height: 1.7;
      resize: vertical;
      outline: none;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .rich-textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(124,109,242,.16);
      background: var(--bg-surface);
    }
    .rich-textarea.large { min-height: 320px; }
    #policyTerms,
    #policyPrivacy,
    #policyCommunity,
    #policyCopyright {
      width: 100% !important;
      min-height: 240px !important;
      padding: 16px !important;
      background: var(--input-bg) !important;
      border: 1px solid var(--border-color) !important;
      border-radius: var(--radius-md) !important;
      color: var(--text-primary) !important;
      font: inherit !important;
      line-height: 1.7 !important;
      resize: vertical !important;
      outline: none !important;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
    }
    #policyTerms,
    #policyPrivacy {
      min-height: 340px !important;
    }
    #policyTerms:focus,
    #policyPrivacy:focus,
    #policyCommunity:focus,
    #policyCopyright:focus {
      border-color: var(--accent) !important;
      box-shadow: 0 0 0 3px rgba(124,109,242,.16) !important;
      background: var(--bg-surface) !important;
    }
    @media (max-width: 640px) {
      .rich-textarea { min-height: 240px; padding: 14px; }
      .rich-textarea.large { min-height: 340px; }
      #policyTerms,
      #policyPrivacy,
      #policyCommunity,
      #policyCopyright {
        min-height: 280px !important;
        padding: 14px !important;
      }
      #policyTerms,
      #policyPrivacy {
        min-height: 380px !important;
      }
    }

/* Presentation layer. Keep route, data, permissions and editor behavior in index.html. */
:root { color-scheme: dark; }

body.light-mode { color-scheme: light; }

body {
  background-image: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.015em;
}
button, input, textarea, select { font-family: inherit; }
.ui-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.list-state { width: 100%; }
.list-state-help { color: var(--text-secondary); font-size: 13px; margin-top: 6px; }
.list-retry { margin-inline: auto; border: 1px solid var(--border-color); }
:is(.album-slider, .best-review-slider)[data-load-state="error"],
:is(.album-slider, .best-review-slider)[data-load-state="loading"] { display: block; }
.detail-rating-card.is-unrated .rating-star { display: none; }
.detail-rating-card.is-unrated .rating-value { font-size: 18px; font-weight: 500; color: var(--text-secondary); }
.work-rating-label { color: var(--text-secondary); }
.server-work-page h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; }
.server-work-description { margin-top: 18px; color: var(--text-secondary); }
.server-work-page > a { display: inline-block; margin-bottom: 24px; color: var(--accent); }
header { background: var(--header-bg); backdrop-filter: none; -webkit-backdrop-filter: none; padding-block: 12px; gap: 12px; }
.logo-area { gap: 28px; }
.logo { font-size: 22px; letter-spacing: -.045em; white-space: nowrap; }
.top-actions { gap: 2px; }
.nav-btn { font-weight: 500; border-radius: 5px; }
.top-actions .nav-btn { padding: 8px 10px; white-space: nowrap; }
#headerNickname { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.category-tabs { gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cat-btn, .cat-btn.active {
  padding: 9px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font-weight: 600;
}
.cat-btn.active { border-bottom-color: var(--text-primary); color: var(--text-primary); }
.cat-btn:hover { background: transparent; color: var(--text-primary); }
.nav-btn.primary, .action-btn, .page-num.active, .genre-chip.active, .region-chip.active,
.spoiler-msg button, .my-review-badge, .mobile-nav a.active, .admin-tab.active, .genre-choice-btn.active, .skip-link {
  background: var(--action-bg); border-color: var(--action-bg); color: #fff;
}
.nav-btn.primary:hover, .action-btn:hover { background: var(--action-hover); }
.action-btn { border-radius: 6px; font-size: 15px; padding: 13px 18px; font-weight: 600; }
.notice-bar { background: var(--bg-surface-hover); color: var(--text-primary); border-bottom: 1px solid var(--border-color); font-weight: 500; }
.page { padding-top: 32px; animation: none; }
.section-title, .card-container h2, #home-page h3 { font-weight: 700; letter-spacing: -.025em; }
.section-title { font-size: 21px; line-height: 1.4; margin-bottom: 18px; }
#bestReviewSection, .home-panel { margin-bottom: 32px; }
.home-section-tabs {
  display: flex; gap: 24px; width: 100%; margin: 0 0 18px; padding: 0;
  border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0;
  background: transparent; box-shadow: none;
}
.home-section-tab, .home-section-tab.active {
  min-height: 44px; margin-bottom: -1px; padding: 10px 2px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--text-secondary); font-size: 15px; font-weight: 500;
}
.home-section-tab.active { color: var(--text-primary); border-bottom-color: var(--text-primary); font-weight: 700; }
.home-section-tab:hover { color: var(--text-primary); background: transparent; }
.home-region-controls { margin: 0 0 24px; }
.region-chip, .genre-chip { border-radius: 5px; font-weight: 500; padding: 6px 12px; }
.home-genre-controls { padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; box-shadow: none; }
.genre-chips-wrapper { flex-wrap: wrap; overflow: visible; }
.album-card, .search-result-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.album-cover, .search-result-cover { border-radius: 4px; }
.album-info { padding: 10px 0 6px; }
.album-info h3 { font-size: 14px; line-height: 1.45; font-weight: 600; }
.album-info p { font-size: 12px; line-height: 1.5; }
.album-meta-row { margin-top: 6px; gap: 6px; }
.search-result-info { padding: 9px 0; }
.avg-badge { background: #25282c; color: #fff; border-radius: 3px; box-shadow: none; backdrop-filter: none; font-variant-numeric: tabular-nums; }
.album-card:hover, .search-result-card:hover, .latest-review-item:hover { transform: none; box-shadow: none; background: transparent; }
.album-card:hover .album-info h3, .search-result-card:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.scroll-btn { opacity: 1; background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-color); width: 36px; height: 36px; font-size: 14px; box-shadow: var(--shadow-sm); backdrop-filter: none; }
.scroll-btn.left { left: -18px; }
.scroll-btn.right { right: -18px; }
.scroll-btn:hover { background: var(--bg-surface-hover); border-color: var(--text-secondary); }
.best-review-slider { padding: 0; }
.best-review-slider .best-review-card { flex-basis: 100%; }
.best-review-card { height: 320px; padding: 24px; gap: 12px; border-radius: 6px; background: var(--bg-surface); box-shadow: none; }
.best-review-card::after { display: none; }
.best-review-kicker { padding: 0; background: transparent; border-radius: 0; color: var(--text-secondary); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.best-review-rating { padding: 0; background: transparent; border-radius: 0; color: var(--text-primary); font-size: 15px; }
.best-review-card .rev-text { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; align-self: start; }
.best-review-work { grid-template-columns: 48px minmax(0, 1fr) auto; padding-top: 14px; border-top: 1px solid var(--border-color); gap: 12px; }
.best-review-work img { width: 48px; height: 64px; border-radius: 3px; }
.best-review-work[data-work-category="music"] img { height: 48px; }
.best-review-work-info h4 { font-size: 14px; font-weight: 600; }
.best-review-work-info p, .best-review-cta { font-size: 12px; }
.best-review-cta { border-radius: 5px; background: transparent; color: var(--accent); font-weight: 600; }
.best-review-cta:hover { background: transparent; color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.latest-review-section { margin-top: 32px; padding-top: 24px; }
.latest-review-list { gap: 0; border-top: 1px solid var(--border-color); }
.latest-review-item { padding: 17px 8px; gap: 28px; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; box-shadow: none; }
.latest-review-work img { border-radius: 3px; }
.latest-review-work h4 { font-weight: 600; }
.latest-review-snippet { font-size: 14px; line-height: 1.65; }
.card-container, .review-item-card, .notice-list-item, .notification-item, .genre-item-row, .mini-work-card, .admin-tabs, .review-list-controls { box-shadow: none; border-radius: 6px; }
.notice-list-item:hover, .review-item-card:hover, .genre-item-row:hover, .mini-work-card:hover { transform: none; }
.review-item-card { padding: 24px; }
.review-item-card.my-review { box-shadow: none; }
.review-body { line-height: 1.8; }
.review-header { align-items: center; }
.review-user-info { min-width: 0; }
.review-score { flex-shrink: 0; }
body.light-mode .review-score, body.light-mode .detail-rating-card .rating-star { color: #996200; }
.like-btn, .page-num, .search-more-btn { border-radius: 5px; }
.page-num { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.detail-hero { padding: 28px; border-radius: 6px; gap: 28px; }
.hero-cover { border-radius: 4px; box-shadow: none; align-self: flex-start; }
.hero-info h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hero-info h3 { font-size: 18px; font-weight: 500; }
.detail-rating-card { border: 0; background: transparent; padding: 12px 0 0 16px; box-shadow: none; }
.detail-rating-card .rating-star { filter: none; }
.work-detail-list dt { font-weight: 600; }
.form-group input:not([type="hidden"]):not([type="checkbox"]), .form-group textarea, .form-group select,
.comment-compose textarea, .review-list-controls select { border: 1px solid var(--border-color); border-radius: 5px; box-shadow: none; }
.form-group label { color: var(--text-primary); }
.modal-container { border-radius: 10px; }
.empty-state { border-style: solid; border-radius: 6px; padding: 36px 20px; }
.footer-contact-banner { background: #151515; border-top: 1px solid #353535; }
.footer-brand img { border-radius: 8px; box-shadow: none; }
.footer-brand-title { font-weight: 700; }
.footer-link-group h4 { letter-spacing: 0; font-weight: 500; }
.footer-link-group a { font-weight: 500; }
.footer-contact-mail { font-weight: 500; }
.floating-theme-toggle { box-shadow: var(--shadow-sm); z-index: 90; }
:where(a, button, summary, input, textarea, select, [contenteditable="true"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (min-width: 921px) and (max-width: 1250px) {
  header { padding-inline: 24px; }
  .logo-area { gap: 18px; }
  .category-tabs { gap: 14px; }
  .top-actions .nav-btn { padding-inline: 7px; font-size: 13px; }
}
@media (max-width: 920px) {
  header { padding: 8px 16px 0; }
  .category-tabs { gap: 0; padding: 0; }
  .cat-btn { min-height: 44px; }
  .mobile-header-btn { border: 0; border-radius: 5px; background: transparent; box-shadow: none; }
  #mobileProfileBtn { overflow: visible; }
  #mobileProfileBtn[style*="none"] { display: none !important; }
  #mobileProfileBtn img { width: 30px; height: 30px; border-radius: 50%; }
  .mobile-nav { background: var(--bg-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav a, .mobile-nav button:not(.mobile-menu-close) { border-radius: 5px; font-weight: 500; }
  .mobile-nav a > span[aria-hidden="true"] { border: 0; background: transparent; border-radius: 0; }
  .mobile-menu-close { display: inline-flex !important; border-radius: 5px; }
  .home-section-tabs { display: flex; }
  .home-section-tab { flex: 1; }
  .page { padding-top: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  header { padding-inline: 12px; }
  .logo { font-size: 18px; }
  .cat-btn { font-size: 13px; }
  .page { padding: 22px 16px 36px; }
  .section-title, #bestReviewSection > h3 { font-size: 19px !important; }
  .home-section-tabs { gap: 16px; margin-top: 0; }
  .home-section-tab { font-size: 14px; }
  .home-region-controls { margin-bottom: 22px; }
  .region-chip, .genre-chip { min-height: 36px; }
  .album-slider { grid-auto-columns: minmax(132px, 42vw); gap: 18px 14px; padding-inline: 0; }
  .album-info { padding: 9px 0 4px; }
  .album-info h3 { font-size: 13px; }
  .album-card:hover { box-shadow: none; }
  .album-meta-row { font-size: 11px; }
  .best-review-card { height: 330px; padding: 18px; }
  .best-review-card .rev-text { padding: 0; font-size: 14px; -webkit-line-clamp: 4; }
  .best-review-work { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .best-review-work img { width: 40px; height: 54px; }
  .best-review-work[data-work-category="music"] img { height: 40px; }
  .best-review-cta { grid-column: auto; padding: 4px 0; font-size: 11px; }
  .latest-review-item { padding: 15px 0; gap: 9px; }
  .latest-review-snippet { font-size: 13px; }
  .detail-hero { padding: 20px 16px; gap: 20px; }
  .hero-cover { align-self: center; }
  .hero-info h2 { font-size: 26px; }
  .review-item-card { padding: 18px 16px; }
  .card-container { padding: 22px 18px; }
  .footer-contact-banner { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card, .latest-review-item, .home-section-tab { transition: none; }
}
