.gd-page {
  --gd-gap: 24px;
  --gd-pad: 24px;
  --gd-card: #121218;
  --gd-card-2: #181820;
  --gd-line: rgba(255,255,255,0.07);
  --gd-green: #2ecc71;
  --gd-amber: #f5a524;
  --gd-tabs-top: 77px;
}

.gd-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.gd-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  isolation: isolate;
}
.gd-hero-bg {
  position: absolute;
  inset: -20px;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.1);
  transform: scale(1.04);
}
.gd-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,15,0.86) 38%, rgba(10,10,15,0.55) 100%),
    linear-gradient(to left, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.35) 60%, rgba(10,10,15,0.6) 100%);
  backdrop-filter: blur(2px);
}
.gd-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.gd-cover {
  position: relative;
  aspect-ratio: 460 / 215;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 6px rgba(255,255,255,0.03);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gd-cover-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.gd-cover-age {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
}

.gd-hero-info { min-width: 0; }

.gd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.gd-breadcrumb a:hover { color: var(--text); }

.gd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gd-line);
  color: var(--text-dim);
}
.gd-badge-live { background: rgba(46,204,113,0.16); color: #58d68d; border-color: rgba(46,204,113,0.35); }
.gd-badge-soon { background: rgba(245,197,24,0.14); color: var(--gold); border-color: rgba(245,197,24,0.35); }

.gd-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  overflow-wrap: anywhere;
}
.gd-tagline { color: var(--gold); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.gd-desc { color: var(--text-dim); font-size: 15px; max-width: 640px; margin-bottom: 22px; }

.gd-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--gd-line);
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  max-width: 640px;
}
.gd-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: rgba(14,14,20,0.82);
}
.gd-fact-label { font-size: 11.5px; color: var(--text-faint); }
.gd-fact-value { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-fact-value small { color: var(--text-faint); font-weight: 500; }
.gd-star { color: var(--gold); }

.gd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gd-icon-btn[aria-pressed="true"] { color: var(--red-bright); border-color: rgba(229,9,20,0.45); }
.gd-notified { color: var(--gold); font-size: 14px; font-weight: 600; padding: 0 6px; }
.gd-notify-count { margin-top: 14px; color: var(--text-faint); font-size: 13.5px; }
.gd-notify-count strong { color: var(--gold); }

.gd-tabs {
  position: sticky;
  top: var(--gd-tabs-top);
  z-index: 50;
  background: rgba(10,10,15,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gd-line);
  border-top: 1px solid var(--gd-line);
}
.gd-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gd-tabs-inner::-webkit-scrollbar { display: none; }
.gd-tabs a {
  flex: 0 0 auto;
  position: relative;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}
.gd-tabs a:hover { color: var(--text); }
.gd-tabs a.is-active { color: var(--text); }
.gd-tabs a.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
}
.gd-tab-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.gd-page .flash-stack { margin: 20px 0 0; }

.gd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gd-gap);
  align-items: start;
  padding-top: 28px;
  padding-bottom: 56px;
}
.gd-main { display: flex; flex-direction: column; gap: var(--gd-gap); min-width: 0; }
.gd-aside {
  position: sticky;
  top: calc(var(--gd-tabs-top) + 64px);
  display: flex;
  flex-direction: column;
  gap: var(--gd-gap);
}

.gd-card {
  background: var(--gd-card);
  border: 1px solid var(--gd-line);
  border-radius: 18px;
  padding: var(--gd-pad);
  scroll-margin-top: calc(var(--gd-tabs-top) + 70px);
}
.gd-card-flush { padding: 0; overflow: hidden; }
.gd-card-compact { padding: 20px; }
.gd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.gd-card-head-pad { padding: var(--gd-pad) var(--gd-pad) 0; }
.gd-card-head h2 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gd-card-head h2::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(var(--red-bright), var(--red));
}
.gd-card-compact .gd-card-head h2 { font-size: 17px; }
.gd-card-meta { font-size: 12.5px; color: var(--text-faint); }

.gd-subtitle {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  margin: 22px 0 12px;
  color: var(--text);
}
.gd-prose { color: var(--text-dim); font-size: 15px; line-height: 2; white-space: pre-line; }

.gd-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.gd-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.gd-check {
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46,204,113,0.15);
  color: var(--gd-green);
  font-size: 11px;
  font-weight: 900;
}

.gd-specs { display: flex; flex-direction: column; }
.gd-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--gd-line);
  font-size: 13.5px;
}
.gd-specs > div:last-child { border-bottom: 0; }
.gd-specs dt { color: var(--text-faint); flex: 0 0 auto; }
.gd-specs dd { color: var(--text); font-weight: 600; text-align: left; min-width: 0; overflow-wrap: anywhere; }
.gd-dl-summary .btn { margin-top: 14px; }

.gd-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.gd-health-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.gd-health-ok { background: rgba(46,204,113,0.12); color: #4fd97f; }
.gd-health-broken { background: rgba(229,9,20,0.14); color: #ff6b73; }
.gd-health-unknown { background: rgba(255,255,255,0.07); color: var(--text-faint); }

.gd-dl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 18px;
}
.gd-dl-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  min-width: 0;
}
.gd-dl-stats span { font-size: 12px; color: var(--text-faint); }
.gd-dl-stats strong { font-size: 17px; font-weight: 800; color: var(--text); text-align: right; }
.gd-password { background: linear-gradient(135deg, rgba(229,9,20,0.12), rgba(229,9,20,0.03)) !important; border-color: rgba(229,9,20,0.3) !important; }
.gd-password-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gd-password code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  user-select: all;
}
.gd-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.gd-copy:hover { background: rgba(255,255,255,0.18); }
.gd-copy.is-copied { background: rgba(46,204,113,0.2); color: #4fd97f; }

.gd-parts { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: part; }
.gd-part {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 90px 108px auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  transition: border-color 0.2s, transform 0.2s;
}
.gd-part:hover { border-color: rgba(229,9,20,0.4); }
.gd-part.is-broken { opacity: 0.75; }
.gd-part-format {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 11px;
  background: rgba(229,9,20,0.12);
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.gd-part-info { display: flex; flex-direction: column; min-width: 0; }
.gd-part-info strong { font-size: 14.5px; }
.gd-part-file {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.gd-part-size { font-size: 14px; font-weight: 700; color: var(--text-dim); text-align: center; }
.gd-part .gd-health { justify-self: center; }
.gd-part-btn { padding: 10px 18px; }
.gd-part-dm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.gd-part-dm:hover { background: rgba(229,9,20,0.16); color: var(--red-bright); }

.gd-dm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229,9,20,0.14), rgba(245,197,24,0.06));
  border: 1px solid rgba(229,9,20,0.28);
}
.gd-dm-cta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-dm-cta strong { font-size: 14.5px; }
.gd-dm-cta span { font-size: 12.5px; color: var(--text-dim); }

.gd-dl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--gd-line);
}
.gd-note { flex: 1 1 280px; font-size: 12.5px; color: var(--text-faint); line-height: 1.9; }

.gd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  border: 1px dashed var(--gd-line);
  border-radius: 14px;
}
.gd-empty-icon { font-size: 30px; }

.gd-req-wrap { border: 1px solid var(--gd-line); border-radius: 14px; overflow: hidden; }
.gd-req { width: 100%; border-collapse: collapse; font-size: 14px; }
.gd-req th, .gd-req td { padding: 13px 16px; text-align: right; vertical-align: top; border-bottom: 1px solid var(--gd-line); }
.gd-req tbody tr:last-child th, .gd-req tbody tr:last-child td { border-bottom: 0; }
.gd-req thead th { background: var(--gd-card-2); font-size: 13px; color: var(--text-faint); font-weight: 700; }
.gd-req tbody th { color: var(--text-faint); font-weight: 600; width: 22%; white-space: nowrap; }
.gd-req td { color: var(--text); line-height: 1.8; }
.gd-req tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.gd-req-tag { display: inline-flex; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.gd-req-min { background: rgba(245,165,36,0.14); color: var(--gd-amber); }
.gd-req-rec { background: rgba(46,204,113,0.14); color: #4fd97f; }

.gd-accordion { display: flex; flex-direction: column; gap: 10px; }
.gd-accordion .gd-subtitle { margin: 16px 0 4px; }
.gd-acc {
  border-radius: 14px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.gd-acc[open] { border-color: rgba(229,9,20,0.35); }
.gd-acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14.5px;
  user-select: none;
}
.gd-acc summary::-webkit-details-marker { display: none; }
.gd-acc summary:hover { background: rgba(255,255,255,0.03); }
.gd-acc summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.gd-acc-icon { font-size: 17px; }
.gd-acc-title { flex: 1; }
.gd-acc-meta { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.gd-acc-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-top: -4px;
}
.gd-acc[open] .gd-acc-chevron { transform: rotate(-135deg); margin-top: 4px; }
.gd-acc-body { padding: 4px 18px 18px; animation: gdFade 0.25s ease; }
@keyframes gdFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.gd-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.gd-steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 42px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.9;
  min-height: 28px;
}
.gd-steps li::before {
  content: counter(step, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(229,9,20,0.14);
  color: var(--red-bright);
  font-weight: 800;
  font-size: 13px;
}

.gp {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  outline: none;
  margin-top: 18px;
  user-select: none;
}
.gp:focus-visible { box-shadow: inset 0 0 0 2px var(--red); }
.gp-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.gp.is-fullscreen { margin: 0; }
.gp:not(.has-started) .gp-video { object-fit: cover; }

.gp-big {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: rgba(229,9,20,0.92);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(229,9,20,0.45), 0 0 0 10px rgba(229,9,20,0.18);
  transition: transform 0.25s, opacity 0.25s;
}
.gp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.gp-big:hover { transform: scale(1.08); }
.gp.is-playing .gp-big { opacity: 0; pointer-events: none; transform: scale(0.8); }

.gp-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  animation: gpSpin 0.8s linear infinite;
  opacity: 0;
  pointer-events: none;
}
.gp.is-loading.is-playing .gp-spinner { opacity: 1; }
@keyframes gpSpin { to { transform: rotate(360deg); } }

.gp-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0,0,0,0.78);
  text-align: center;
  padding: 20px;
  direction: rtl;
  font-size: 14px;
  color: var(--text-dim);
}
.gp-error[hidden] { display: none; }
.gp-error strong { color: #fff; font-size: 16px; }
.gp.has-error .gp-big, .gp.has-error .gp-bar { display: none; }

.gp-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.gp.is-active .gp-bar, .gp:not(.has-started) .gp-bar, .gp:focus-within .gp-bar { opacity: 1; transform: none; }
.gp.is-playing:not(.is-active) { cursor: none; }

.gp-progress {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.gp-progress::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.22);
  transition: height 0.15s;
}
.gp-buffered, .gp-played {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 4px;
  transition: height 0.15s;
}
.gp-buffered { background: rgba(255,255,255,0.4); width: 0; }
.gp-played { background: var(--red); width: 0; }
.gp-thumb {
  position: absolute;
  left: 0;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(229,9,20,0.4);
  transform: scale(0);
  transition: transform 0.15s;
}
.gp-progress:hover::before, .gp-progress:hover .gp-buffered, .gp-progress:hover .gp-played { height: 6px; }
.gp-progress:hover .gp-thumb, .gp-progress:focus-visible .gp-thumb { transform: scale(1); }

.gp-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.gp-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  transition: background 0.2s;
}
.gp-btn:hover, .gp-btn:focus-visible { background: rgba(255,255,255,0.14); outline: none; }
.gp-btn svg { width: 21px; height: 21px; }
.gp-i-pause, .gp-i-muted, .gp-i-exit { display: none; }
.gp.is-playing .gp-i-play { display: none; }
.gp.is-playing .gp-i-pause { display: block; }
.gp.is-muted .gp-i-vol { display: none; }
.gp.is-muted .gp-i-muted { display: block; }
.gp.is-fullscreen .gp-i-full { display: none; }
.gp.is-fullscreen .gp-i-exit { display: block; }
.gp-speed { width: auto; min-width: 42px; padding: 0 8px; font-size: 13px; font-weight: 800; font-family: var(--font-body); }

.gp-volume { display: flex; align-items: center; }
.gp-volume-range {
  --fill: 100%;
  width: 0;
  opacity: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(to right, #fff var(--fill), rgba(255,255,255,0.25) var(--fill));
  transition: width 0.2s, opacity 0.2s, margin 0.2s;
  cursor: pointer;
}
.gp-volume:hover .gp-volume-range, .gp-volume-range:focus { width: 80px; opacity: 1; margin: 0 8px 0 4px; }
.gp-volume-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.gp-volume-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.gp-time { font-size: 12.5px; color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.gp-spacer { flex: 1; }

.gp-empty {
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.gp-empty::before { content: ''; position: absolute; inset: 0; background: rgba(8,8,12,0.78); backdrop-filter: blur(4px); }
.gp-empty-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  direction: rtl;
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 14px;
}
.gp-empty-inner svg { width: 54px; height: 54px; color: var(--text-faint); }
.gp-empty-inner strong { color: var(--text); font-size: 17px; }

.gd-comments-top {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--gd-gap);
  padding-bottom: var(--gd-gap);
  margin-bottom: var(--gd-gap);
  border-bottom: 1px solid var(--gd-line);
}

.gd-rating {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  align-self: start;
}
.gd-rating-score { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.gd-rating-score strong { font-family: var(--font-display); font-size: 46px; line-height: 1.1; font-weight: 400; }
.gd-rating-score small { color: var(--text-faint); font-size: 12.5px; }
.gd-stars, .gc-stars { display: inline-flex; gap: 2px; color: rgba(255,255,255,0.18); }
.gd-stars { font-size: 20px; }
.gd-stars .on, .gc-stars .on { color: var(--gold); }
.gd-rating-bars { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.gd-rating-bars li { display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.gd-bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,0.08); overflow: hidden; }
.gd-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gold), #f59e0b); }
.gd-bar-count { text-align: left; }

.gd-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gd-form .gd-subtitle { margin: 0; }
.gd-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.gd-form label small { color: var(--text-faint); font-weight: 400; }
.gd-form input[type="text"], .gd-form input[type="email"], .gd-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--gd-line);
  border-radius: 11px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gd-form textarea { resize: vertical; min-height: 96px; line-height: 1.9; }
.gd-form input:focus, .gd-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,9,20,0.18); }
.gd-form .is-invalid { border-color: #ff6b73; }
.gd-form .btn { align-self: flex-start; }
.gd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-form-as { font-size: 13.5px; color: var(--text-faint); }
.gd-form-as strong { color: var(--text); }
.gd-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

.gd-rate-input { border: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gd-rate-input legend { float: right; font-size: 13px; color: var(--text-dim); font-weight: 600; margin-left: 12px; }
.gd-rate-stars { display: inline-flex; }
.gd-rate-stars input { position: absolute; opacity: 0; pointer-events: none; }
.gd-rate-stars label {
  font-size: 28px;
  line-height: 1;
  padding: 0 2px;
  color: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.gd-rate-stars label:hover { transform: scale(1.15); }
.gd-rate-stars input:checked ~ label { color: var(--gold); }
.gd-rate-stars:hover input ~ label { color: rgba(255,255,255,0.18); }
.gd-rate-stars:hover input ~ label:hover,
.gd-rate-stars:hover label:hover ~ label { color: var(--gold); }
.gd-rate-stars input:focus-visible + label { outline: 2px solid var(--red); border-radius: 6px; }

.gd-comment-list { display: flex; flex-direction: column; gap: 14px; }
.gc-thread {
  border-radius: 14px;
  background: var(--gd-card-2);
  border: 1px solid var(--gd-line);
  padding: 16px;
}
.gc { display: flex; gap: 12px; scroll-margin-top: 150px; border-radius: 12px; transition: background 0.4s; }
.gc.is-highlighted { background: rgba(245,197,24,0.07); box-shadow: 0 0 0 8px rgba(245,197,24,0.07); }
.gc-avatar {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.gc-content { flex: 1; min-width: 0; }
.gc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.gc-name { font-size: 14.5px; }
.gc-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(229,9,20,0.16); color: var(--red-bright); }
.gc-stars { font-size: 13px; }
.gc-time { font-size: 12px; color: var(--text-faint); margin-inline-start: auto; }
.gc-mention { display: block; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.gc-mention b { color: var(--text-dim); }
.gc-body { margin: 6px 0 8px; color: var(--text-dim); font-size: 14.5px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.gc-actions { display: flex; align-items: center; gap: 6px; }
.gc-vote, .gc-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.gc-vote:hover, .gc-reply-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.gc-vote[data-vote="1"][aria-pressed="true"] { background: rgba(46,204,113,0.16); color: #4fd97f; }
.gc-vote[data-vote="-1"][aria-pressed="true"] { background: rgba(229,9,20,0.16); color: #ff6b73; }
.gc-vote:disabled { opacity: 0.6; cursor: wait; }
.gc-reply-btn { margin-inline-start: auto; }
.gc-replies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  margin-inline-start: 20px;
  padding-inline-start: 22px;
  border-inline-start: 2px solid var(--gd-line);
}
.gc-reply .gc-avatar { flex-basis: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.gd-reply-form { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--gd-line); }
.gd-reply-form textarea { min-height: 80px; background: var(--gd-card); }
.gd-reply-form input[type="text"], .gd-reply-form input[type="email"] { background: var(--gd-card); }
.gd-reply-actions { display: flex; gap: 8px; }

.gd-related { padding-bottom: 72px; }

.gd-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: #1d1d26;
  border: 1px solid var(--gd-line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.gd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.gd-toast-ok { border-color: rgba(46,204,113,0.4); }
.gd-toast-error { border-color: rgba(229,9,20,0.5); color: #ff9ba0; }

@media (max-width: 1080px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .gd-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .gd-dl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-password { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .gd-page { --gd-tabs-top: 68px; --gd-pad: 18px; --gd-gap: 18px; }
  .gd-container { padding: 0 16px; }
  .gd-hero { padding: 28px 0 32px; }
  .gd-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .gd-cover { max-width: 460px; }
  .gd-comments-top { grid-template-columns: 1fr; }
  .gd-part { grid-template-columns: 50px minmax(0, 1fr) auto auto; row-gap: 6px; column-gap: 10px; }
  .gd-part-dm { grid-column: 3; grid-row: 1; }
  .gd-part-format { grid-column: 1; grid-row: 1 / span 2; height: 50px; }
  .gd-part-info { grid-column: 2; grid-row: 1; }
  .gd-part-btn { grid-column: 4; grid-row: 1; }
  .gd-part-size { grid-column: 2; grid-row: 2; justify-self: start; }
  .gd-part .gd-health { grid-column: 3 / span 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 640px) {
  .gd-aside { grid-template-columns: 1fr; }
  .gd-facts { grid-template-columns: 1fr 1fr; }
  .gd-actions .btn-lg { padding: 12px 18px; font-size: 14px; }
  .gd-actions > .btn-primary, .gd-actions > .btn-secondary { flex: 1 1 auto; justify-content: center; }
  .gd-dl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gd-dl-stats > div { padding: 12px; }
  .gd-dl-stats strong { font-size: 15px; }
  .gd-form-row { grid-template-columns: 1fr; }
  .gd-card-head { flex-wrap: wrap; }
  .gd-req thead { display: none; }
  .gd-req, .gd-req tbody, .gd-req tr, .gd-req th, .gd-req td { display: block; width: 100%; }
  .gd-req tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--gd-line); }
  .gd-req tbody tr:last-child { border-bottom: 0; }
  .gd-req th, .gd-req td { padding: 3px 0; border: 0; }
  .gd-req tbody th { color: var(--text); font-weight: 800; width: auto; }
  .gd-req td::before { content: attr(data-label) ': '; color: var(--text-faint); font-size: 12.5px; }
  .gc-replies { margin-inline-start: 4px; padding-inline-start: 12px; }
  .gc-time { margin-inline-start: 0; width: 100%; }
  .gp-volume-range { display: none; }
  .gp-btn[data-gp="back"], .gp-btn[data-gp="forward"] { display: none; }
  .gp-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
