body {
  font-family: "intercom", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: linear-gradient(to bottom, #1a2238 0%, #111111 45%, #000000 100%);
  font-size: 24px;
  line-height: 1.6;
  color: #111;
}

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

.site-header,
.panel,
.hero-box,
.review-card,
.site-footer {
  border: 3px solid #000;
  background: #f8f3e8;
  box-shadow: 5px 5px 0 #000;
}

.site-header {
  background: linear-gradient(to bottom, #69a7ff, #2e63b8);
  margin-bottom: 18px;
}

.site-header h1 {
  font-family: "cc-pixel-arcade-cartridge", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}

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

.logo-block h1 {
  margin: 0;
  color: #fff200;
  text-shadow: 2px 2px 0 #000;
}

.tagline {
  color: white;
  margin-top: 6px;
}

.header-badge {
  background: #000;
  color: #00ff66;
  border: 2px solid #fff;
  padding: 10px 14px;
  font-weight: bold;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  border-top: 3px solid #000;
  background: #f7c948;
}

.top-nav a {
  padding: 12px 16px;
  border-right: 2px solid #000;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 18px;
}

.panel-title {
  margin: 0;
  padding: 10px 12px;
  background: #ff5fa2;
  color: #fff;
  border-bottom: 3px solid #000;
}

.panel,
.hero-box,
.review-card {
  padding: 14px;
}

.sidebar-list {
  padding-left: 20px;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-pill,
.meta-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid #000;
  background: #ffb3d1;
  font-weight: bold;
}

.site-footer {
  margin-top: 22px;
  padding: 12px;
  text-align: center;
  background: #f7c948;
  font-weight: bold;
}

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

.post-thumb {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: top center;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  display: block;
}

.rating-pill {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid #000;
  background: #fff200;
  font-weight: bold;
  min-width: 56px;
  text-align: center;
}

.logo-link,
.panel-title {
  font-family: "orbitron", sans-serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 1px;
  color: #fff200;
  text-decoration: none;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.single-post-body {
  padding: 16px;
}

.single-post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 3px solid #000;
  margin-bottom: 14px;
}

.post-excerpt {
  font-style: italic;
  font-weight: bold;
}

.empty-state {
  padding: 14px;
}

.quiz-question-block {
  margin-bottom: 24px;
  padding: 14px;
  border: 2px solid #000;
  background: #fffdf7;
}

.quiz-answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: normal;
  text-transform: none;
}

.quiz-answer-option input {
  width: auto;
}

.comments-panel {
  padding-bottom: 16px;
}

.comments-list {
  padding: 14px;
}

.comment-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid #000;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}

.avatar-image-wrap {
  width: 56px;
  height: 56px;
  border: 2px solid #000;
  background: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.comment-content p {
  margin-top: 0;
}

.comment-name {
  margin-bottom: 6px;
}

.comment-date {
  font-size: 0.8rem;
  color: #555;
}

.post-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.spoiler {
  background: #000;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease;
}

.spoiler.revealed {
  color: #fff;
}


.spoiler-toggle {
  padding: 10px 14px;
  border: 2px solid #000;
  background: #ff5fa2;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.spoiler-toggle:hover {
  background: #ff85b7;
}

.spoiler-content {
  margin-top: 12px;
  padding: 12px;
  border: 2px dashed #000;
  background: #fff;
}

.field-help {
  margin: 6px 0 8px;
  font-size: 0.85rem;
  color: #333;
}

.admin-actions {
  margin-top: 12px;
  font-weight: bold;
}

.admin-preview-image {
  width: 100%;
  max-width: 320px;
  border: 2px solid #000;
  display: block;
}

.delete-form {
  margin-top: 16px;
}

.delete-btn {
  padding: 12px 18px;
  border: 2px solid #000;
  background: #ff6b6b;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

.delete-btn:hover {
  background: #ff8d8d;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
}

.stat-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.stat-card p {
  margin: 0;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions .logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.logout-btn {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.header-actions a[href="/"] {
  background: #111;
  color: #fff;
}


.spoiler-block {
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.spoiler-block summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}

.spoiler-content {
  padding-top: 8px;
}

.admin-preview-image {
  max-width: 260px;
  border-radius: 12px;
  display: block;
}

.post-subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-top: 6px;
  margin-bottom: 12px;
}

.share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.share-links a,
.share-links button {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

/* SHARE BUTTONS */

.share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 14px;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
  border: none;
  cursor: pointer;

  transition: all 0.15s ease;
}

/* Platform styles */
.share-x {
  background: #000;
  color: #fff;
}

.share-facebook {
  background: #1877f2;
  color: #fff;
}

.share-reddit {
  background: #ff4500;
  color: #fff;
}

.share-copy {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Hover + press */
.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.post-content h2,
.review-text h2 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.5rem;
}

.post-content h3,
.review-text h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.post-content blockquote,
.review-text blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--border);
  background: rgba(255,255,255,0.05);
  font-style: italic;
}

.watching-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watching-card {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 10px;
}

.watching-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.watching-network {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.site-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.site-search input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.site-search button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

/* ============================= */
/* SIDEBAR TEXT OVERFLOW FIX     */
/* ============================= */

.right-sidebar .panel-title,
.left-sidebar .panel-title {
  font-size: 0.9rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 10px 12px !important;
}

/* Fix panel content spacing */
.right-sidebar .panel,
.left-sidebar .panel {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Watching Now titles */
.watching-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.watching-network {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ============================= */
/* RIGHT COLUMN WIDTH FIX        */
/* ============================= */

.content-grid {
  grid-template-columns: 220px minmax(0, 1fr) 300px !important;
}

/* ============================= */
/* SEARCH BAR FIX (IMPORTANT)    */
/* ============================= */

.site-search {
  margin-left: 0 !important;
  max-width: 520px;
  width: 100%;
}

.top-nav {
  display: flex;
  align-items: center;
}

.top-nav .site-search {
  margin-left: auto;
}

/* ============================= */
/* BLOCKBUSTER x FACEBOOK THEME  */
/* ============================= */

:root {
  --header-top: #1b3fa0;
  --header-bottom: #2f6adf;

  --tab-top: #ffd42a;
  --tab-bottom: #e6bb1f;
  --tab-hover: #ffe680;

  --panel-bg: #eef4ff;
  --sidebar-bg: #dde8ff;

  --link: #1b3fa0;
  --meta: #4c5d8a;

  --border: #0f172a;
}

/* Header gradient */
.site-header {
  background: linear-gradient(to bottom, var(--header-top), var(--header-bottom));
}

/* Tabs */
.top-nav a {
  background: linear-gradient(to bottom, var(--tab-top), var(--tab-bottom));
  color: #111;
  font-weight: 700;
}

.top-nav a:hover {
  background: var(--tab-hover);
}

/* Panels */
.panel {
  background: var(--panel-bg);
  border: 2px solid var(--border);
}

/* Sidebar panels */
.right-sidebar .panel,
.left-sidebar .panel {
  background: var(--sidebar-bg);
}

/* Pink header tweak (less aggressive, more nostalgic) */
.panel-title {
  background: linear-gradient(to bottom, #ff4fb0, #d63a91);
  color: #ffd42a;
  text-shadow: 1px 1px 0 #7a1b58;
}

/* ============================= */
/* HARD MOBILE LAYOUT FIX        */
/* ============================= */

@media (max-width: 900px) {
  .content-grid,
  .layout,
  .content-with-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .left-sidebar,
  .right-sidebar,
  .main-column,
  .sidebar,
  .sidebar-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-right: none !important;
  }

  .left-sidebar,
  .right-sidebar {
    order: initial !important;
  }

  .site-header,
  .page-shell,
  .panel,
  .hero-box,
  .reviews-panel,
  .single-post-layout,
  .single-post,
  .comment-card,
  .review-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .top-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .top-nav a {
    flex: 1 1 calc(50% - 4px) !important;
    text-align: center !important;
  }

  .top-nav .site-search {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
  }

  .site-search {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .site-search input,
  .site-search input[type="text"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  .right-sidebar .panel-title,
  .left-sidebar .panel-title {
    font-size: 0.82rem !important;
    line-height: 1.1 !important;
    padding: 10px !important;
  }

  .watching-title {
    font-size: 0.92rem !important;
  }

  .watching-network {
    font-size: 0.78rem !important;
  }
}

/* ============================= */
/* FINAL MOBILE OVERFLOW FIX     */
/* ============================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden !important;
  }

  .page-shell,
  .site-header,
  .content-grid,
  .layout,
  .content-with-sidebar,
  .main-column,
  .left-sidebar,
  .right-sidebar,
  .panel,
  .hero-box,
  .reviews-panel,
  .single-post-layout,
  .single-post {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .page-shell {
    margin: 0 !important;
    padding: 0 10px 20px !important;
    box-sizing: border-box !important;
  }

  .site-header,
  .panel,
  .hero-box,
  .review-card,
  .comment-card {
    box-sizing: border-box !important;
  }

  .review-card,
  .comment-card {
    overflow: hidden !important;
  }

  .post-thumb,
  .single-post-image,
  .review-image,
  .review-thumb,
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .top-nav {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .top-nav a {
    box-sizing: border-box !important;
  }

  .top-nav .site-search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-search input,
  .site-search button {
    box-sizing: border-box !important;
  }
}
