/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #e8000d;
  --dark: #ffffff;
  --card-bg: #f5f5f5;
  --border: #ddd;
  --text: #111111;
  --muted: #666;
  --accent: #e8000d;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: #f0f0f0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--red);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: #111;
}
.logo span { color: var(--red); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-weight: 500; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; opacity: .9; transition: opacity .2s; color: #111; }
.main-nav a:hover { opacity: 1; color: var(--red); }
.menu-toggle { display: none; background: none; border: none; color: #111; font-size: 1.5rem; cursor: pointer; }

/* ===== AD BANNER ===== */
.ad-banner {
  background: #e8e8e8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 12px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder { color: var(--muted); font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 28px;
  border-left: 5px solid var(--red);
  padding-left: 16px;
}

/* ===== POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.no-posts-msg { color: var(--muted); font-size: 1rem; }

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s;
  position: relative;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--red); }
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.post-card-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #ddd;
  min-height: 180px;
}
.post-card-body { padding: 16px; }
.post-card-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.post-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.post-card-date { font-size: .75rem; color: #555; margin-top: 10px; }

/* ===== MODAL / SINGLE POST ===== */
.post-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 200;
  overflow-y: auto;
  padding: 40px 16px;
}
.post-overlay.active { display: flex; align-items: flex-start; justify-content: center; }
.post-modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 760px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  margin: auto;
}
.close-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: #111; font-size: 1.4rem;
  cursor: pointer; opacity: .7;
  transition: opacity .2s;
}
.close-modal:hover { opacity: 1; }
#modalContent h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.15;
}
#modalContent .modal-meta { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
#modalContent .modal-img {
  width: 100%; border-radius: 6px;
  margin-bottom: 20px; display: block;
}
#modalContent .modal-body { font-size: 1rem; line-height: 1.75; color: #333; }
#modalContent .modal-body p { margin-bottom: 14px; }

/* ===== SHARE BAR ===== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: .85rem;
  color: var(--muted);
}
.share-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-block;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-btn.twitter { background: #1da1f2; color: #fff; }
.share-btn.copy { background: #ddd; color: #111; }

/* ===== SUBSCRIBE ===== */
.subscribe-section {
  background: linear-gradient(135deg, #fff0f0 0%, #f5f5f5 100%);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  padding: 60px 20px;
  text-align: center;
}
.subscribe-inner { max-width: 560px; margin: 0 auto; }
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.subscribe-section p { color: var(--muted); margin-bottom: 24px; }
.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #111;
  font-family: var(--font-body);
  font-size: 1rem;
}
.subscribe-form input:focus { outline: none; border-color: var(--red); }
.subscribe-form button {
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s;
}
.subscribe-form button:hover { background: #c00; }
.sub-success { color: #4caf50; margin-top: 14px; font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--muted);
}
.logo-sm { font-family: var(--font-display); font-size: 1.4rem; color: #111; }
.logo-sm span { color: var(--red); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--red); }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 2px solid var(--red); z-index: 99; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== BLURRED THUMB + PLAY BUTTON ===== */
.thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #ddd;
  display: block;
}
.post-card-thumb.blurred {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(10px);
  transform: scale(1.12);
  transition: filter 0.3s;
}
.post-card:hover .post-card-thumb.blurred {
  filter: blur(8px);
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  gap: 8px;
  transition: background 0.2s;
}
.post-card:hover .play-overlay {
  background: rgba(0,0,0,0.45);
}
.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #e8000d;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding-left: 4px;
  transition: transform 0.2s, background 0.2s;
}
.post-card:hover .play-btn {
  transform: scale(1.12);
  background: #fff;
}
.play-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  text-transform: uppercase;
}

/* ===== CARD SHARE BUTTONS ===== */
.card-share-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
}
.card-share-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.card-share-btn:hover { opacity: 0.82; }
.card-share-btn.tw { background: #1da1f2; color: #fff; }
.card-share-btn.cp { background: #e0e0e0; color: #111; }

/* ===== GIF SECTION ===== */
.gif-section {
  background: transparent;
  padding: 0;
  margin: 0;
}
.gif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}
.gif-item {
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.gif-item img {
  height: 180px;
  width: auto;
  display: block;
  border-radius: 8px;
}

/* ===== GIF ADMIN GRID ===== */
.gif-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.gif-admin-item {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #2a2a2a;
}
