/* ========================================
   TMR — Inner page styles
   ======================================== */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 24px 0 22px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(225, 6, 0, 0.25), transparent 50%),
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.page-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-hero__desc {
  font-size: 16px;
  max-width: 560px;
  opacity: 0.85;
  line-height: 1.5;
}

.page-hero--image {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 26, 77, 0.92), rgba(0, 43, 117, 0.55));
  z-index: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: start;
  padding: 16px 0 40px;
}

.page-layout > .sidebar {
  position: sticky;
  top: 58px;
}

.page-layout--narrow {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.page-layout--narrow .stats-row {
  margin-top: 0;
}

.page-layout--wide {
  grid-template-columns: 1fr;
}

/* Category listing */
.listing-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
  overflow: hidden;
}

.listing-feature__img {
  min-height: 280px;
  overflow: hidden;
}

.listing-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.listing-feature:hover .listing-feature__img img {
  transform: scale(1.03);
}

.listing-feature__body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.listing-feature__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0;
}

.listing-feature__title a:hover {
  color: var(--red);
}

.listing-feature__excerpt {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 14px;
}

.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.listing-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}

.listing-item:last-child {
  border-bottom: none;
}

.listing-item__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 2px;
}

.listing-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.listing-item:hover .listing-item__img img {
  transform: scale(1.05);
}

.listing-item__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 6px;
}

.listing-item__title a:hover {
  color: var(--red);
}

.listing-item__excerpt {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
}

.pagination a:hover,
.pagination a.is-active,
.pagination span.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.play-btn {
  text-decoration: none;
}

/* Article */
.article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 28px 32px 40px;
}

.article__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.article__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-600);
}

.article__meta .meta__avatar {
  border-color: var(--gray-200);
}

.article__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article__share span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
}

.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #000; }
.share-btn--wa { background: #25d366; }
.share-btn--mail { background: var(--navy); }

.article__hero-img {
  margin: 0 -32px 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__caption {
  font-size: 12px;
  color: var(--gray-600);
  margin: 8px 32px 0;
  font-style: italic;
}

.article__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  max-width: 680px;
}

.article__body p {
  margin-bottom: 1.25em;
}

.article__body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 1.6em 0 0.6em;
  color: var(--navy);
}

.article__body blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--off-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}

.article__body figure {
  margin: 1.75em 0;
}

.article__body figure img {
  width: 100%;
  border-radius: 2px;
}

.article__body figcaption {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 6px;
  font-style: italic;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.article__tags a {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--gray-100);
  color: var(--navy);
  border-radius: 2px;
}

.article__tags a:hover {
  background: var(--navy);
  color: var(--white);
}

.author-box {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-box p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.related {
  margin-top: 28px;
}

.related__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* About / Team */
.prose-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 32px;
}

.prose-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.prose-card h2 + p,
.prose-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1em;
}

.prose-card ul {
  margin: 0 0 1.2em 1.2em;
  list-style: disc;
}

.prose-card li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stat-box {
  background: var(--navy);
  color: var(--white);
  padding: 20px 16px;
  text-align: center;
}

.stat-box__num {
  font-size: 28px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.stat-box__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px 16px;
}

.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 800;
}

.team-card__role {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  margin: 4px 0 8px;
}

.team-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 28px;
}

.contact-info h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info__item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.contact-info__item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: 0.7;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 28px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--navy);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--navy-mid);
}

/* Support / Donate */
.support-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.tier {
  background: var(--white);
  border: 2px solid var(--gray-200);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.tier:hover,
.tier.is-featured {
  border-color: var(--red);
  transform: translateY(-2px);
}

.tier.is-featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tier__name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tier__price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.tier__price small {
  font-size: 14px;
  font-weight: 600;
}

.tier__desc {
  font-size: 13px;
  opacity: 0.8;
  margin: 12px 0 18px;
  line-height: 1.45;
}

.tier ul {
  text-align: left;
  font-size: 13px;
  margin: 0 0 18px;
  list-style: none;
}

.tier li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-left: 20px;
  position: relative;
}

.tier.is-featured li {
  border-color: rgba(255, 255, 255, 0.1);
}

.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

.tier.is-featured li::before {
  color: #ff6b6b;
}

/* Live page */
.live-player {
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.live-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.live-player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  gap: 12px;
}

.live-player__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.live-schedule {
  background: var(--white);
  border: 1px solid var(--gray-200);
  margin-top: 16px;
}

.live-schedule__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item__time {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  min-width: 90px;
}

.schedule-item__show {
  font-size: 14px;
  font-weight: 700;
}

.schedule-item__desc {
  font-size: 12px;
  color: var(--gray-600);
}

.schedule-item.is-now {
  background: rgba(225, 6, 0, 0.06);
}

/* Videos / Photos */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.media-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.media-card:hover .media-card__thumb img {
  transform: scale(1.05);
}

.media-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(225, 6, 0, 0.9);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.media-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
}

.media-card__body {
  padding: 12px 14px 16px;
}

.media-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 6px;
}

.media-card__title a:hover {
  color: var(--red);
}

.media-card__meta {
  font-size: 12px;
  color: var(--gray-600);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.photo-grid a {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.photo-grid a:hover img {
  transform: scale(1.06);
}

.photo-grid a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Search */
.search-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 20px;
}

.search-box form {
  display: flex;
  gap: 0;
}

.search-box input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--navy);
  border-right: none;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.search-box button {
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Opinion cards */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.opinion-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 20px;
  display: flex;
  gap: 14px;
}

.opinion-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.opinion-card__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
}

.opinion-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 6px;
}

.opinion-card__title a:hover {
  color: var(--red);
}

.opinion-card__by {
  font-size: 12px;
  color: var(--gray-600);
}

/* Empty / utility */
.main--page {
  background: var(--off-white);
  min-height: 50vh;
}

.nav-active {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Dark mode page extras */
body.dark .article,
body.dark .listing-grid,
body.dark .listing-feature,
body.dark .prose-card,
body.dark .contact-form,
body.dark .team-card,
body.dark .tier,
body.dark .live-schedule,
body.dark .media-card,
body.dark .search-box,
body.dark .opinion-card {
  background: #0d1520;
  border-color: #1e2d40;
}

body.dark .article__body h2,
body.dark .prose-card h2,
body.dark .related__title {
  color: #e8edf4;
}

body.dark .article__body blockquote {
  background: #152030;
  color: #e8edf4;
}

body.dark .form-row input,
body.dark .form-row select,
body.dark .form-row textarea,
body.dark .search-box input {
  background: #152030;
  color: #e8edf4;
  border-color: #1e2d40;
}

body.dark .author-box {
  background: #152030;
  border-color: #1e2d40;
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .listing-feature {
    grid-template-columns: 1fr;
  }

  .listing-feature__body {
    padding: 16px;
  }

  .listing-item {
    grid-template-columns: 110px 1fr;
  }

  .stats-row,
  .support-tiers,
  .team-grid,
  .related-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid a:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .article {
    padding: 20px 16px 28px;
  }

  .article__hero-img {
    margin: 0 -16px 20px;
  }

  .article__caption {
    margin-left: 16px;
    margin-right: 16px;
  }

  .article__share {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .stats-row,
  .support-tiers,
  .team-grid,
  .related-grid,
  .media-grid,
  .opinion-grid,
  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .listing-item {
    grid-template-columns: 88px 1fr;
    gap: 10px;
  }

  .listing-item__excerpt {
    display: none;
  }
}
