:root {
  --bg: #050a16;
  --panel: #0e1626;
  --panel-soft: #0a1120;
  --text: #e8eefc;
  --muted: #95a5bf;
  --accent: #f5a524;
  --accent-2: #3fd8c1;
  --accent-3: #f06543;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --font: 'Bai Jamjuree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --outline: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(63, 216, 193, 0.12), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(245, 165, 36, 0.14), transparent 24%),
    radial-gradient(circle at 40% 78%, rgba(240, 101, 67, 0.1), transparent 25%),
    linear-gradient(160deg, #050912 0%, #080f1d 50%, #060a14 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

h1 {
  margin: 0 auto;
}

.main-title {
  line-height: 1.1;
  max-width: 1200px;
  margin: 28px auto 12px;
  font-size: 34px;
  padding: 18px 22px;
  background: linear-gradient(120deg, rgba(245, 165, 36, 0.16), rgba(63, 216, 193, 0.08));
  border-radius: 20px;
  border: 1px solid var(--outline);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--outline);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 12px;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: linear-gradient(130deg, rgba(245, 165, 36, 0.18), rgba(63, 216, 193, 0.18));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social {
  display: flex;
  gap: 10px;
  margin: 0 auto;
}

.social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text);
  /* border: 1px solid var(--outline); */
  /* background: rgba(255, 255, 255, 0.03); */
  transition: 0.2s ease;
}

.social a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 165, 36, 0.4);
  background: linear-gradient(120deg, #f06543, #f5a524);
  color: #0c101c;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(240, 101, 67, 0.35);
  transition: 0.18s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, #f5a524, #3fd8c1);
  box-shadow: 0 16px 32px rgba(63, 216, 193, 0.35);
}

.subscribe {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 8px;
}

.content {
  padding: 0 0 36px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 46px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feed-text {
  padding: 15px;
}

.post-card {
  background: linear-gradient(135deg, rgba(63, 216, 193, 0.12), rgba(10, 16, 28, 0.96));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 26px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--outline);
  transition: 0.2s ease;
}

.post-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -55%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 165, 36, 0.18), transparent 60%);
  transform: rotate(8deg);
  opacity: 0.7;
  pointer-events: none;
}

.post-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.85;
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.55);
}

.media {
  display: flex;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b111c;
  border: 1px solid var(--outline);
}

.placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: radial-gradient(circle at 50% 40%, rgba(63, 216, 193, 0.25), rgba(5, 10, 22, 0.8));
}

.placeholder img {
  border-radius: 12px;
  width: 100%;
}

.chip-action {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #0c101c;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 14px 26px rgba(240, 101, 67, 0.4);
  cursor: pointer;
  font-size: 16px;
}

.body h2 {
  margin: 8px 0 12px;
  line-height: 1.3;
  font-size: 24px;
}

.body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13px;
  color: #0c101c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary {
  background: linear-gradient(135deg, var(--accent), #ffd37a);
}

.badge-teal {
  background: linear-gradient(135deg, var(--accent-2), #9cf1e3);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 110px;
  align-self: flex-start;
}

.card {
  background: linear-gradient(160deg, rgba(12, 20, 33, 0.95), rgba(9, 14, 24, 0.9));
  border-radius: 18px;
  padding: 18px 18px 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--outline);
}

.search-card {
  background: var(--panel);
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.search-box {
  margin: 16px 0 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: var(--panel-soft);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.search-box .btn {
  width: 110px;
  box-shadow: 0 8px 18px rgba(240, 101, 67, 0.3);
}

.recent-card {
  padding-bottom: 12px;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.recent-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recommendations {
  padding: 0 24px 44px;
}

.rec-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(9, 14, 24, 0.95), rgba(12, 20, 33, 0.92));
  border: 1px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  padding: 18px 18px 24px;
}

.rec-card__title {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  border: 1px solid var(--outline);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.rec-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  background: var(--panel-soft);
  border-radius: 16px;
  padding: 10px 10px 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  transition: 0.18s ease;
}

.rec-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.rec-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 140px;
  background: #10182c;
  display: grid;
  align-items: end;
}

.rec-thumb .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
}

.rec-placeholder {
  background: linear-gradient(135deg, #f5a524, #f06543, #3fd8c1);
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.rec-item p {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
}

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 18px;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    background: var(--panel);
    border-radius: 14px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    padding: 14px 16px;
    gap: 12px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .subscribe {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .content {
    padding: 0 0;
  }

  .post-card {
    padding: 14px 14px 20px;
  }

  .body h2 {
    font-size: 22px;
  }

  .recommendations {
    padding: 0 16px 28px;
  }

  .rec-card {
    padding: 16px 12px 18px;
  }

  .rec-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .rec-item {
    scroll-snap-align: start;
  }
}

.img-box {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0px auto 15px auto;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

footer {
  padding: 18px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--outline);
  background: rgba(5, 9, 18, 0.9);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 15px 10px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-radius: 0.75rem;
  transition: all 0.12s ease;
  max-width: 360px;
  height: 60px;
  color: #0c101c;
  margin: 20px auto;
  border: 1px solid rgba(245, 165, 36, 0.4);
  box-shadow: 0 18px 30px rgba(240, 101, 67, 0.3);
}

.button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-2px);
}

.button:active {
  letter-spacing: 1px;
  transform: translateY(4px);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
}
