:root {
  --red: #c8102e;
  --deep-red: #8b0f22;
  --black: #121212;
  --slate: #1d1f23;
  --ink: #2e2f33;
  --gray: #f3f4f6;
  --white: #ffffff;
  --accent: #ffb627;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--black);
  background: radial-gradient(circle at 15% 20%, #fff5f5, #f7f7f8 55%, #ededf2);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.topbar {
  background: var(--black);
  color: var(--white);
  padding: 10px 0;
}

.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--red);
}

.tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.7);
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 14px;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
}

.nav a:hover {
  color: var(--accent);
}

.ticker {
  background: var(--red);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.ticker strong {
  margin-right: 12px;
}

.ticker-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.hero {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 24px;
}

.hero-card {
  position: relative;
  background: var(--black);
  border-radius: 22px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 40px;
  margin: 0 0 12px;
  line-height: 1.1;
}

.hero-content p {
  max-width: 520px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.85);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.news-card {
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(15, 15, 15, 0.08);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.news-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.news-card p {
  margin: 0;
  color: #4b4c4f;
  font-size: 14px;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b6f76;
}

.section {
  margin-top: 34px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.banner {
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.banner img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.banner small {
  color: #7a7d82;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  margin-bottom: 8px;
}

.footer {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #e0e0e6;
  color: #5d6066;
  font-size: 13px;
}

.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
}

.admin-token {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5d7dd;
  font-family: inherit;
  font-size: 14px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: #1d1f23;
}

.btn.ghost {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.panel {
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-top: 0;
}

.panel form {
  display: grid;
  gap: 12px;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
}

.list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  border: 1px solid #e1e4ea;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f0f3;
  font-size: 11px;
  font-weight: 600;
}

.status-published {
  background: #e2f7e6;
  color: #1f7a39;
}

.status-draft {
  background: #fff2d6;
  color: #8c5b00;
}

.alert {
  background: #fff6f6;
  border: 1px solid #f5c4c4;
  padding: 12px;
  border-radius: 10px;
  color: #a0182a;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .topbar .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}
