@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --page: #101311;
  --panel: #171d19;
  --panel-soft: #1d2620;
  --text: #f1f2ed;
  --muted: #b0b8af;
  --accent: #b7d5a3;
  --accent-strong: #8ab76f;
  --gold: #c5a86a;
  --line: rgba(213, 227, 207, .16);
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(74, 105, 76, .18), transparent 42%),
    radial-gradient(ellipse at 95% 20%, rgba(143, 118, 62, .10), transparent 35%),
    var(--page);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.9;
}
a { color: inherit; }
button, audio, video { font: inherit; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.top-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top-nav a, .text-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.top-nav a:hover, .text-link:hover { color: var(--accent); }
.page-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 46px 0 70px; }
.intro, .page-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.eyebrow { display: block; margin: 0 0 7px; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.4; }
.intro-copy, .page-heading p:not(.eyebrow) { color: var(--muted); margin: 0; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: 360px; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 24px;
  text-decoration: none; background: linear-gradient(145deg, #24352a, #121713 76%);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hub-card::before {
  content: ""; position: absolute; z-index: -1; width: 290px; height: 290px; border-radius: 50%;
  top: -85px; left: -55px; border: 1px solid rgba(211, 231, 190, .17);
  box-shadow: 0 0 0 28px rgba(211,231,190,.025), 0 0 0 58px rgba(211,231,190,.02);
}
.hub-films { background: linear-gradient(145deg, #342e22, #171512 76%); }
.hub-films::before { border-color: rgba(218, 184, 117, .22); }
.hub-card:hover, .hub-card:focus-visible { transform: translateY(-5px); border-color: var(--accent-strong); box-shadow: 0 18px 50px rgba(0,0,0,.22); outline: none; }
.hub-symbol { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: auto; border: 1px solid var(--line); border-radius: 22px; color: var(--accent); font-size: 2.5rem; }
.hub-films .hub-symbol { color: var(--gold); }
.hub-kicker { margin-top: 28px; color: var(--muted); font-size: .72rem; letter-spacing: .16em; }
.hub-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.hub-description { color: var(--muted); }
.hub-action { margin-top: 22px; color: var(--accent); font-weight: 700; }
.hub-films .hub-action { color: var(--gold); }
.site-footer { padding: 24px 18px 32px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .85rem; }
.site-footer a { text-decoration: none; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.album-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s ease, box-shadow .2s ease; }
.album-card[open] { border-color: rgba(183,213,163,.7); box-shadow: 0 15px 38px rgba(0,0,0,.18); }
.album-summary { display: flex; min-height: 150px; align-items: center; gap: 14px; padding: 16px; cursor: pointer; list-style: none; }
.album-summary::-webkit-details-marker { display: none; }
.album-cover-wrap { position: relative; flex: 0 0 108px; width: 108px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #334b37, #141b15); }
.album-cover { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: none; place-items: center; position: absolute; inset: 0; color: var(--accent); font-size: 3rem; }
.album-text { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.album-label { color: var(--muted); font-size: .75rem; }
.album-title { font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.album-count { color: var(--accent); font-size: .82rem; }
.album-toggle { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 1.2rem; transition: transform .2s ease; }
.album-card[open] .album-toggle { transform: rotate(45deg); }
.track-list { border-top: 1px solid var(--line); padding: 14px; }
.track-list-heading { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px 10px; color: var(--muted); font-size: .8rem; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); }
.track-main { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.track-number { color: var(--gold); font-size: .8rem; padding-top: 2px; }
.track-details { min-width: 0; flex: 1; }
.track-name { display: block; margin-bottom: 5px; font-weight: 600; overflow-wrap: anywhere; }
.track-details audio { display: block; width: 100%; height: 36px; max-width: 100%; }
.download-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); transition: background .2s, border-color .2s; }
.download-icon:hover, .download-icon:focus-visible { background: rgba(183,213,163,.12); border-color: var(--accent); }
.download-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-note { margin-top: 28px; color: var(--muted); font-size: .86rem; }
.film-list { display: grid; gap: 22px; }
.film-card {
  display: flex; width: 100%; min-width: 0; gap: 24px; align-items: stretch; padding: 20px;
  text-align: right; color: var(--text); font-family: inherit; cursor: pointer;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(115deg, rgba(255,255,255,.025), rgba(107,135,94,.09));
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.film-card:hover, .film-card:focus-visible { border-color: var(--accent-strong); transform: translateY(-3px); box-shadow: 0 16px 45px rgba(0,0,0,.22); outline: none; }
.film-poster-wrap { position: relative; flex: 0 0 210px; width: 210px; min-height: 235px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #3b493a, #1a211b); }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { display: none; position: absolute; inset: 0; place-items: center; color: var(--accent); font-size: 1.2rem; }
.film-content { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: stretch; }
.film-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.film-topline .eyebrow { margin: 0; }
.hover-download { color: var(--accent); font-size: .83rem; opacity: 0; transform: translateX(-5px); transition: opacity .2s, transform .2s; }
.film-card:hover .hover-download, .film-card:focus-visible .hover-download { opacity: 1; transform: translateX(0); }
.film-title { display: block; margin: 8px 0; font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 800; line-height: 1.5; }
.film-summary { color: #d0d5ce; }
.film-credits { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.film-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 16px; color: var(--gold); font-size: .78rem; }
.film-modal { display: none; position: fixed; inset: 0; z-index: 9999; padding: 18px; background: rgba(0,0,0,.94); }
.film-modal.is-open { display: grid; place-items: center; }
.film-modal-panel { display: flex; flex-direction: column; width: min(1200px, 100%); max-height: 100%; }
.modal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 0 12px; }
.modal-toolbar h2 { margin: 0; font-size: 1.1rem; }
.modal-actions { display: flex; align-items: center; gap: 12px; }
.modal-download { display: inline-block; padding: 7px 14px; border: 1px solid var(--accent-strong); border-radius: 8px; color: var(--accent); text-decoration: none; }
.modal-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #222; color: white; font-size: 1.8rem; cursor: pointer; }
#modalVideo { display: block; width: 100%; max-height: calc(100vh - 130px); background: #000; border-radius: 10px; }
.modal-hint { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }
body.modal-open { overflow: hidden; }
@media (max-width: 850px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-poster-wrap { flex-basis: 170px; width: 170px; min-height: 210px; }
  .film-card { gap: 16px; }
}
@media (max-width: 600px) {
  .site-header { padding: 14px 18px; align-items: flex-start; }
  .brand img { width: 38px; height: 38px; }
  .top-nav { flex-direction: column; gap: 2px; align-items: flex-start; }
  .page-shell { width: min(100% - 24px, 1120px); padding-top: 30px; }
  .hub-grid, .album-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 300px; }
  .album-summary { min-height: 130px; }
  .album-cover-wrap { flex-basis: 96px; width: 96px; }
  .film-card { flex-direction: column; padding: 14px; }
  .film-poster-wrap { width: 100%; flex-basis: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hover-download { opacity: 1; transform: none; }
  .film-meta { gap: 6px 14px; }
  .film-modal { padding: 10px; }
  .modal-toolbar { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
