:root {
  --background: #eef3f8;
  --foreground: #122033;
  --surface: #ffffff;
  --surface-muted: #f6f9fc;
  --line: rgba(15, 23, 42, 0.08);
  --brand: #d71920;
  --brand-dark: #a80d13;
  --accent: #0f4c81;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  background-image:
    radial-gradient(circle at top left, rgba(74, 144, 226, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.2), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef3f8 52%, #e8eef4 100%);
}

body.copy-guard {
  -webkit-touch-callout: none;
}

body.copy-guard :not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d12;
  color: rgba(255, 255, 255, 0.78);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-main {
  padding: 18px 0 16px;
}

.header-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand strong {
  display: block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eceff3;
  max-height: 180px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 0.24s ease,
    opacity 0.2s ease,
    margin-top 0.2s ease,
    padding-top 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.site-header.nav-collapsed .main-nav {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
  transform: translateY(-8px);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.action-link.muted {
  background: #f3f5f8;
  color: #111827;
}

.action-link.muted:hover {
  background: #e8edf3;
}

.action-link.primary {
  background: var(--brand);
  color: white;
}

.action-link.primary:hover {
  background: var(--brand-dark);
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #3f4754;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #fff0f1;
  color: var(--brand);
}

.homepage-main,
.list-main,
.detail-main,
.info-main {
  padding: 34px 0 48px;
}

.info-shell {
  display: grid;
  gap: 24px;
}

.info-hero,
.info-card {
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.info-hero {
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(113, 165, 255, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 231, 153, 0.32), transparent 28%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
}

.info-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.info-hero p {
  max-width: 48rem;
  margin: 18px 0 0;
  color: #5f6875;
  font-size: 1.05rem;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 26px;
}

.info-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 1.15rem;
}

.info-card p {
  margin: 0;
  color: #5f6875;
  line-height: 1.9;
}

.info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-card,
.live-card,
.section-card,
.detail-card {
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hero-card {
  background: #08090d;
  min-height: 620px;
}

.hero-split {
  display: grid;
  min-height: 620px;
}

.hero-media {
  position: relative;
  min-height: 320px;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,16,28,0.04) 0%, rgba(10,16,28,0.2) 45%, rgba(10,16,28,0.72) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  color: white;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pill.red {
  background: var(--brand);
  color: white;
}

.pill.neutral {
  background: rgba(100, 116, 139, 0.12);
  color: #334155;
}

.pill.glass {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #f3f4f6;
}

.hero-copy-top {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.hero-summary,
.live-now-text,
.news-card-summary,
.news-card-title,
.live-list-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-summary {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #d4d7de;
  -webkit-line-clamp: 4;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #c7cbd4;
  font-size: 14px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.live-card {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 28px;
  -webkit-user-select: none;
  user-select: none;
}

.live-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-header p,
.section-tag {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.live-header h2,
.section-head h2,
.page-intro h1 {
  margin: 10px 0 0;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.counter {
  border-radius: 999px;
  background: #0b0d12;
  color: white;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.live-now {
  margin-top: 18px;
  min-height: 92px;
  border-radius: 22px;
  background: #0b0d12;
  color: white;
  padding: 14px 16px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.live-now-label {
  color: #b7bdc7;
  font-size: 14px;
}

.live-now-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  -webkit-line-clamp: 4;
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  flex: 1;
}

.live-item {
  display: grid;
  grid-template-columns: auto 84px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid #edf0f4;
  cursor: default;
  transition: 0.2s ease;
}

.live-item.active,
.live-item:hover {
  border-color: #fec9cc;
  background: #fff6f6;
}

.live-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b0d12;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.live-thumb {
  width: 84px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.live-list-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #10151d;
  -webkit-line-clamp: 2;
}

.live-list-category {
  margin-top: 5px;
  color: #7a8391;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-card {
  margin-top: 28px;
  padding: 28px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head p:last-child,
.page-intro p {
  margin: 0;
  max-width: 46rem;
  color: #5f6875;
  font-size: 14px;
  line-height: 1.85;
}

.card-grid,
.list-grid {
  display: grid;
  gap: 20px;
}

.news-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.news-card img {
  width: 100%;
  height: 224px;
  object-fit: cover;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-card-title {
  margin: 14px 0 0;
  min-height: 5.5rem;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #10151d;
  -webkit-line-clamp: 3;
}

.news-card-summary {
  margin: 14px 0 0;
  min-height: 5.25rem;
  color: #616a77;
  font-size: 14px;
  line-height: 1.8;
  -webkit-line-clamp: 3;
}

.news-card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.page-intro {
  margin-top: 0;
}

.detail-card {
  padding: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #e6e9ef;
  background: white;
  font-size: 14px;
  font-weight: 700;
}

.detail-cover {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
}

.detail-title {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-summary {
  margin: 18px 0 0;
  max-width: 56rem;
  color: #4f5865;
  font-size: 18px;
  line-height: 1.8;
}

.detail-body {
  margin-top: 28px;
  color: #232933;
  font-size: 17px;
  line-height: 1.95;
  white-space: pre-line;
}

.site-footer {
  margin-top: 56px;
  padding: 46px 0 24px;
  background: #080a0f;
  color: #e5e7eb;
}

.login-main,
.account-main,
.admin-main {
  padding: 40px 0 56px;
}

.login-layout,
.admin-hero,
.admin-panel-grid,
.stack-grid {
  display: grid;
  gap: 24px;
}

.login-intro {
  padding: 38px 36px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(113,165,255,0.28), transparent 34%),
    radial-gradient(circle at top right, rgba(255,231,153,0.42), transparent 30%),
    linear-gradient(180deg, #f5f9ff 0%, #fbfdff 100%);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: #9f1239;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-intro h1,
.account-card h1,
.admin-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.login-intro p,
.account-lead,
.admin-copy p,
.panel-note p,
.mini-card p,
.stat-card p,
.account-note,
.account-panel p {
  color: #5f6875;
  line-height: 1.85;
}

.login-panel,
.account-card,
.admin-shell,
.mini-card,
.panel-note,
.timeline-card,
.admin-list-card,
.quick-links-card,
.account-panel {
  border-radius: 32px;
  background: white;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.login-panel {
  padding: 32px;
}

.panel-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.switch-link {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

.panel-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.panel-logo img {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.cookie-modal {
  width: min(100%, 520px);
  border-radius: 18px;
  background: white;
  padding: 24px;
  color: #18181b;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.cookie-badge {
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
}

.cookie-logo {
  height: 84px;
  width: auto;
  margin: 12px auto 0;
}

.cookie-title {
  margin: 20px 0 0;
  text-align: center;
  color: #09090b;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cookie-purposes {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.cookie-purpose {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.cookie-purpose p {
  margin: 4px 0 0;
  color: #3f3f46;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.cookie-more {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  border: 0;
  background: transparent;
  color: #3f3f46;
  cursor: pointer;
  text-align: left;
}

.cookie-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  color: #71717a;
  background: white;
}

.cookie-more-icon svg {
  transition: transform 0.2s ease;
}

.cookie-more.expanded .cookie-more-icon svg {
  transform: rotate(180deg);
}

.cookie-details {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e4e4e7;
}

.cookie-details.visible {
  display: block;
}

.cookie-details p {
  margin: 0 0 14px;
  color: #71717a;
  font-size: 14px;
  line-height: 1.8;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4e4e7;
}

.cookie-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-action:hover {
  background: #1d4ed8;
}

.panel-logo h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.panel-logo span {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #059669;
}

.login-form label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.login-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  transition: 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: 14px;
}

.form-row a {
  margin-left: auto;
  color: #1d4ed8;
  font-weight: 700;
}

.submit-button,
.outline-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.submit-button {
  border: 0;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  color: white;
  cursor: pointer;
}

.submit-button:hover {
  filter: brightness(0.96);
}

.outline-button {
  border: 1px solid #e5e7eb;
  color: #111827;
  background: white;
}

.outline-button:hover {
  border-color: #f87171;
  color: var(--brand);
}

.soft-button {
  background: #f3f5f8;
  color: #111827;
}

.soft-button:hover {
  background: #e8edf3;
}

.panel-disclaimer {
  margin: 18px 0 0;
  border-radius: 24px;
  background: #f8fafc;
  padding: 16px 18px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.75;
}

.account-card,
.admin-shell {
  padding: 32px;
}

.account-grid,
.stats-grid,
.quick-links,
.account-action-row {
  display: grid;
  gap: 16px;
}

.account-grid {
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.account-grid strong,
.mini-card strong,
.timeline-card strong,
.admin-list-card strong,
.admin-editor-card strong,
.admin-manage-card strong,
.quick-links-card strong,
.stat-card strong {
  display: block;
  color: #111827;
}

.meta-label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.account-status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 22px;
  background: #ecfdf5;
  padding: 14px 18px;
  color: #047857;
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
}

.account-action-row {
  margin-top: 24px;
}

.account-panel {
  padding: 24px;
  margin-top: 26px;
}

.admin-copy {
  max-width: 48rem;
}

.stats-grid {
  align-content: end;
}

.stat-card,
.mini-card,
.panel-note,
.timeline-card,
.admin-list-card,
.admin-editor-card,
.admin-manage-card,
.quick-links-card {
  padding: 22px;
}

.admin-editor-card,
.admin-manage-card {
  border-radius: 32px;
  background: white;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.stat-card {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.stat-card .stat-value {
  margin-top: 12px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-news-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-field span {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.admin-news-form input,
.admin-news-form select,
.admin-news-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  transition: 0.2s ease;
  background: #fff;
}

.admin-news-form textarea {
  min-height: 240px;
  resize: vertical;
}

.admin-news-form input:focus,
.admin-news-form select:focus,
.admin-news-form textarea:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.admin-image-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.admin-preview-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.admin-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.admin-preview-card figcaption,
.admin-preview-empty {
  display: block;
  padding: 12px 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.admin-form-actions,
.admin-manage-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-managed-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-user-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-manage-item {
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 16px;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.admin-user-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.admin-user-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-user-head p {
  margin: 6px 0 0;
  color: #5f6875;
  font-size: 14px;
}

.admin-user-role {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-role select {
  min-width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.admin-user-role select:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.admin-manage-thumb {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
}

.admin-manage-copy h3 {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.admin-manage-copy p {
  margin: 10px 0 0;
  color: #5f6875;
  line-height: 1.7;
}

.admin-manage-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.admin-manage-actions {
  margin-top: 14px;
}

.danger-button {
  color: #b91c1c;
  background: #fff1f2;
}

.danger-button:hover {
  background: #ffe4e6;
}

.empty-state.small {
  min-height: auto;
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.admin-panel-grid ul,
.quick-links-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.admin-panel-grid li,
.quick-links-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.admin-panel-grid li:first-child,
.quick-links-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-panel-grid li:last-child,
.quick-links-card li:last-child {
  padding-bottom: 0;
}

.timeline-card .timeline-entry {
  padding: 14px 0;
  border-top: 1px solid #edf0f4;
}

.timeline-card .timeline-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-time {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.timeline-text {
  margin: 8px 0 0;
  color: #5f6875;
  font-size: 14px;
  line-height: 1.75;
}

.page-spacer {
  min-height: 40px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  padding: 0 0 28px;
}

.footer-logo {
  height: 18px;
  width: auto;
  margin-bottom: 28px;
}

.footer-grid h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 12px;
  color: #f3f4f6;
  font-size: 14px;
  line-height: 1.7;
}

.footer-grid a {
  width: fit-content;
}

.footer-grid a:hover {
  color: #c7d2fe;
}

.footer-about {
  max-width: 18rem;
  color: #94a3b8;
}

.footer-bottom {
  display: grid;
  gap: 18px;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials,
.footer-meta-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-socials {
  gap: 12px;
}

.footer-meta-links {
  justify-content: center;
  gap: 22px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 16px;
  transition: 0.2s ease;
}

.footer-socials a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.footer-meta-links a,
.footer-copy {
  color: #94a3b8;
  font-size: 14px;
}

.footer-meta-links a:hover {
  color: white;
}

.footer-copy {
  text-align: right;
}

.empty-state {
  padding: 40px;
  border-radius: 28px;
  background: white;
  text-align: center;
  box-shadow: 0 16px 50px rgba(15,23,42,0.08);
}

.guard-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(340px, calc(100vw - 36px));
  border-radius: 18px;
  background: rgba(11, 13, 18, 0.94);
  color: white;
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.guard-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .login-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: stretch;
  }

  .account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-action-row {
    grid-template-columns: repeat(3, max-content);
  }

  .admin-hero {
    grid-template-columns: 1fr 0.72fr;
    align-items: end;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-panel-grid {
    grid-template-columns: 1.35fr 0.95fr;
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-split {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10,16,28,0.15) 0%, rgba(10,16,28,0.04) 35%, rgba(10,16,28,0) 100%);
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 899px) {
  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .action-link {
    flex: 1 1 180px;
  }

  .footer-copy {
    text-align: left;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-head {
    display: none;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-split {
    min-height: auto;
  }

  .hero-meta {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand strong {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .brand img {
    height: 50px;
  }

  .login-panel,
  .account-card,
  .admin-shell,
  .login-intro,
  .mini-card,
  .panel-note,
  .timeline-card,
  .admin-list-card,
  .admin-editor-card,
  .admin-manage-card,
  .quick-links-card,
  .account-panel {
    border-radius: 26px;
  }

  .brand span {
    font-size: 13px;
  }

  .site-header {
    position: static;
  }

  .section-card,
  .detail-card,
  .live-card,
  .login-panel,
  .account-card,
  .admin-shell,
  .login-intro,
  .mini-card,
  .panel-note,
  .timeline-card,
  .admin-list-card,
  .admin-editor-card,
  .admin-manage-card,
  .quick-links-card,
  .account-panel {
    padding: 20px;
  }

  .admin-form-grid,
  .admin-manage-item {
    grid-template-columns: 1fr;
  }

  .admin-manage-thumb {
    width: 100%;
    height: 200px;
  }

  .site-footer {
    padding: 38px 0 22px;
  }

  .cookie-modal {
    padding: 22px 18px;
  }

  .cookie-logo {
    height: 72px;
  }


@media (min-width: 640px) {
  .cookie-actions {
    flex-direction: row;
  }
}
  .footer-grid {
    gap: 22px;
  }

  .news-card img {
    height: 210px;
  }
}

.account-guard {
  display: none;
}