/* spreeecc skin (spreee.cc, German) — loaded after the base style.css.
   Legacy spreee.cc was already a modern redesign (sticky header, <details>
   dropdowns, its own design tokens) layered over jQuery + Bootstrap + Font
   Awesome; only the design survives here. Palette and type: legacy
   static/spreee.cc/css/style.css — a red slab-serif wordmark on dark
   charcoal, serif display headings, Open Sans body (self-hosted in fonts/). */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/spreeecc/fonts/OpenSans-Regular.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/spreeecc/fonts/OpenSans-SemiBold.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/spreeecc/fonts/OpenSans-ExtraBold.woff") format("woff");
}

:root {
  --bg: #140d0b;
  --surface: #1e1512;
  --text: #f2ece5;
  --muted: #b6a89d;
  --accent: #de2b2b;
  --radius: 10px;
  --sc-surface-2: #291c18;
  --sc-surface-3: #362520;
  --sc-faint: #7a6c62;
  --sc-red-strong: #ff5c46;
  --sc-rose: #ff8a70;
  --sc-gold: #ffb648;
  --sc-line: rgba(242, 236, 229, .09);
  --sc-shadow: rgba(0, 0, 0, .5);
  --sc-font-display: Georgia, "Noto Serif", "Times New Roman", serif;
  --sc-font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.skin-spreeecc { font-family: var(--sc-font-body); -webkit-font-smoothing: antialiased; }
.skin-spreeecc h1, .skin-spreeecc h2, .skin-spreeecc h3 { font-family: var(--sc-font-display); font-weight: 700; }
.skin-spreeecc a { color: var(--sc-red-strong); }
.skin-spreeecc a:hover { color: var(--sc-rose); }
.skin-spreeecc .wrap { max-width: 1360px; }

/* Header: sticky, blurred, <details> dropdowns — legacy .site-header */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 7, 9, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sc-line);
}
.sc-header-row { display: flex; align-items: center; gap: 1.5rem; height: 64px; padding-top: 0; padding-bottom: 0; }
.sc-brand { display: flex; align-items: center; flex-shrink: 0; }
.sc-brand img { height: 32px; width: auto; transition: transform 180ms ease; }
.sc-brand:hover img { transform: rotate(-2deg); }

.sc-nav { display: flex; align-items: center; gap: .25rem; flex: 1; min-width: 0; }
.sc-nav > a, .sc-dropdown > summary {
  display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: 6px;
  color: var(--text); font-size: .95rem; white-space: nowrap;
}
.skin-spreeecc .sc-nav > a, .skin-spreeecc .sc-dropdown-panel a { color: var(--text); }
.sc-nav > a:hover, .sc-dropdown > summary:hover { background: var(--sc-surface-2); color: var(--sc-red-strong); cursor: pointer; }
.sc-dropdown > summary .icon { color: var(--accent); }
.sc-dropdown { position: relative; }
.sc-dropdown > summary { list-style: none; }
.sc-dropdown > summary::-webkit-details-marker { display: none; }
.sc-dropdown > summary::after { content: ""; border: 4px solid transparent; border-top-color: var(--muted); margin-top: 4px; margin-left: 2px; }
.sc-dropdown[open] > summary::after { border-top-color: transparent; border-bottom-color: var(--muted); margin-top: -2px; }
.sc-dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--sc-line); border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--sc-shadow); padding: .4rem; z-index: 50;
}
.sc-dropdown-panel a, .sc-dropdown-panel .link-button {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 6px;
  color: var(--text); font-size: .92rem; width: 100%; text-align: left;
}
.skin-spreeecc .sc-dropdown-panel a:hover, .sc-dropdown-panel .link-button:hover { background: var(--sc-surface-2); color: var(--sc-red-strong); }
.sc-dropdown-panel hr { border: none; border-top: 1px solid var(--sc-line); margin: .4rem 0; }
.sc-dropdown-panel .icon { color: var(--muted); }
.sc-flag img { display: inline; }

.sc-search { display: flex; align-items: center; flex-shrink: 0; position: relative; margin-left: auto; }
.sc-search input[type=text] {
  width: 220px; padding: .5rem .75rem .5rem 2.1rem; background: var(--sc-surface-2); border: 1px solid var(--sc-line);
  border-radius: 6px; color: var(--text); font-family: var(--sc-font-body); font-size: .95rem;
}
.sc-search input[type=text]:focus { border-color: var(--accent); outline: none; }
.sc-search-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--sc-faint); }
.sc-search-icon .icon { width: 1em; height: 1em; }

.sc-burger {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px;
  background: transparent; border: 1px solid var(--sc-line); color: var(--text); cursor: pointer; flex-shrink: 0; margin-left: auto;
}

@media (max-width: 900px) {
  .sc-nav {
    position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px);
    flex-direction: column; align-items: stretch; background: var(--bg); padding: 1rem; overflow-y: auto;
    display: none;
  }
  .sc-nav.is-open { display: flex; }
  .sc-nav > a, .sc-dropdown > summary { padding: .85rem .75rem; font-size: 1.05rem; }
  .sc-dropdown-panel { position: static; box-shadow: none; margin: .25rem 0 .5rem .5rem; }
  .sc-search { order: -1; margin: 0 0 .5rem; }
  .sc-search input[type=text] { width: 100%; }
  .sc-burger { display: flex; }
}

/* Home — legacy .home-title / .text */
.sc-home-title { font-size: 1.4rem; margin: 2rem 0 1rem; }
.skin-spreeecc .sc-home-title a { color: var(--text); display: inline-flex; align-items: center; gap: .5rem; }
.skin-spreeecc .sc-home-title a:hover { color: var(--sc-red-strong); }
.sc-home-title .icon { color: var(--accent); }
.sc-more { text-align: center; margin-top: 1rem; }
.sc-text { color: var(--muted); max-width: 72ch; }
.sc-cats { margin-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--sc-line); }
.sc-about { margin: 2.5rem 0; }
.sc-narrow { max-width: 650px; margin: 0 auto; }
.skin-spreeecc .section-title .icon { color: var(--accent); }

/* Cards — legacy .video_item_wrapper: rounded thumb, length in the corner,
   two-line title that turns red on hover, views · rating below */
.skin-spreeecc .video-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.sc-card { background: none; border-radius: 0; overflow: visible; }
.sc-card .video-thumb { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sc-card .video-duration { background: rgba(0, 0, 0, .7); border-radius: 3px; font-size: .75rem; font-weight: 600; }
.sc-card .video-progress { background: var(--accent); }
.sc-card .video-meta { padding: .6rem 0 0; }
.sc-card .video-title {
  color: var(--text); font-size: .95rem; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc-card:hover .video-title { color: var(--sc-red-strong); }
.sc-stats { display: flex; justify-content: space-between; gap: .5rem; margin-top: .3rem; font-size: .82rem; color: var(--muted); font-family: var(--sc-font-display); font-weight: 500; }
.sc-stats .icon { color: var(--sc-gold); }

.skin-spreeecc .video-taxonomy a { color: var(--sc-red-strong); }
.skin-spreeecc .action-btn.is-active, .skin-spreeecc .pager-current { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Footer — legacy .site-footer / .footer-grid */
.sc-footer { margin-top: 4rem; border-top: 1px solid var(--sc-line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.skin-spreeecc .sc-footer a { color: var(--muted); }
.skin-spreeecc .sc-footer a:hover { color: var(--sc-red-strong); }
.sc-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.sc-footer-grid h5 { color: var(--text); font-family: var(--sc-font-display); font-size: .85rem; letter-spacing: .03em; margin: 0 0 .75rem; }
.sc-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.sc-footer-brand { display: inline-flex; align-items: center; margin-top: 1.5rem; }
.sc-footer-brand img { height: 26px; width: auto; }
