body.front-theme {
  background:
    radial-gradient(1200px 600px at 18% -12%, rgba(35, 75, 150, 0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(120, 90, 55, 0.22), transparent 60%),
    linear-gradient(180deg, #060d1d 0%, #070f21 45%, #040915 100%);
  color: #e9f0ff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

body.front-theme .navbar {
  background: rgba(9, 18, 38, 0.86) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

body.front-theme .navbar-brand,
body.front-theme .nav-link,
body.front-theme .navbar-toggler {
  color: #e8f0ff !important;
}

body.front-theme .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

body.front-theme .navbar-toggler-icon {
  filter: invert(1);
}

body.front-theme #siteNav {
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

body.front-theme #siteNav .nav-link {
  border-radius: 8px;
}

body.front-theme #siteNav .nav-link:hover,
body.front-theme #siteNav .nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
}

body.front-theme .front-page-shell {
  background: rgba(8, 16, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

body.front-theme .card {
  background: rgba(10, 20, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ecf3ff;
}

body.front-theme .card .text-muted,
body.front-theme .text-muted {
  color: rgba(214, 226, 245, 0.78) !important;
}

body.front-theme .form-control,
body.front-theme .form-select,
body.front-theme textarea {
  background: rgba(12, 22, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f7ff;
}

body.front-theme .form-control::placeholder,
body.front-theme textarea::placeholder {
  color: rgba(209, 223, 245, 0.55);
}

body.front-theme .btn-primary {
  background: linear-gradient(180deg, #3a6ec2, #2b5697);
  border-color: rgba(255, 255, 255, 0.14);
}

body.front-theme .btn-outline-primary,
body.front-theme .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: #eaf2ff;
}

body.front-theme .alert-secondary {
  background: rgba(14, 24, 48, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d9e6ff;
}

body.front-theme .table {
  color: #ebf2ff;
}

body.front-theme .table > :not(caption) > * > * {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
}

body.front-theme a {
  color: #8ec4ff;
}

body.front-theme .front-section-title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.front-theme .mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 11, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  z-index: 44;
}

body.front-theme .mobile-dock a {
  color: #e2ebff;
  text-decoration: none;
  text-align: center;
  padding: 11px 6px 9px;
  font-size: 0.88rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.front-theme .mobile-dock a:last-child {
  border-right: 0;
}

body.front-theme .mobile-dock a.active {
  background: rgba(62, 103, 178, 0.18);
  color: #f4f8ff;
}

body.front-theme .mobile-dock i {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 2px;
}

body.front-theme .front-filter {
  background: rgba(12, 22, 44, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

body.front-theme .media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.front-theme .media-card {
  text-decoration: none;
  color: #f1f6ff;
  display: block;
}

body.front-theme .media-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16/9;
  background: rgba(12, 22, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.front-theme .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

body.front-theme .media-card:hover .media-thumb img {
  transform: scale(1.05);
}

body.front-theme .media-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #d2b07b;
  color: #111;
  border-radius: 6px;
  font-size: 0.74rem;
  padding: 4px 8px;
  font-weight: 700;
}

body.front-theme .media-duration {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #f6f9ff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

body.front-theme .media-title {
  margin-top: 8px;
  margin-bottom: 2px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #f1f6ff;
}

body.front-theme .media-meta {
  color: rgba(210, 223, 245, 0.8);
  font-size: 0.92rem;
}

body.front-theme .front-card {
  background: rgba(10, 20, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

body.front-theme .front-card .card-body {
  padding: 14px;
}

@media (max-width: 1199.98px) {
  body.front-theme .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.front-theme #siteNav {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(9, 18, 38, 0.96);
  }

  body.front-theme #siteNav .navbar-nav {
    gap: 4px;
  }

  body.front-theme #siteNav .nav-link {
    padding: 0.48rem 0.2rem;
  }

  body.front-theme .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.front-theme .media-duration {
    font-size: 1.08rem;
  }
}

@media (max-width: 575.98px) {
  body.front-theme .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body.front-theme .mobile-dock {
    display: grid;
  }
  body.front-theme .front-page-shell {
    padding-bottom: 92px;
  }
}
