.menu-toggle,
.menu-close,
.menu-item,
.section-action,
.tag-button,
.media-close,
.tag-popup-close {
  border: 0;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 191, 36, 0.22);
}

.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 4, 7, 0.72);
  backdrop-filter: blur(10px);
}

.menu-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 191, 36, 0.1), transparent 26%),
    linear-gradient(180deg, #331015 0%, #22090d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(18px) scale(0.98);
  transition: transform 200ms ease;
}

.menu-modal.is-open .menu-panel {
  transform: translateY(0) scale(1);
}

.menu-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.menu-kicker,
.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.menu-panel h2,
.section-heading h2,
.home-intro h1,
.midias-header h1 {
  margin: 0;
  letter-spacing: -0.045em;
}

.menu-panel h2 {
  font-size: 1.45rem;
}

.menu-close,
.media-close,
.tag-popup-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-close img,
.media-close img,
.tag-popup-close img {
  width: 24px;
  height: 24px;
}

.menu-nav {
  display: grid;
  gap: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 20px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.menu-item:hover,
.menu-item.is-active {
  transform: translateY(-1px);
  background: rgba(255, 191, 36, 0.1);
  border-color: var(--border-strong);
}

.menu-item img {
  width: 28px;
  height: 28px;
}

.menu-item strong {
  display: block;
  font-size: 1rem;
}

.menu-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 6vw, 2.25rem);
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.row-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-action {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 999px;
  color: #2a1114;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 900;
  cursor: pointer;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(18, 4, 8, 0.22);
  cursor: pointer;
}

.media-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 191, 36, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(70, 20, 30, 0.98), rgba(25, 6, 10, 0.92));
}

.media-card-visual video,
.media-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.media-card:not(.has-error) .media-card-fallback {
  display: none;
}

.media-type-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(24, 7, 10, 0.72);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.media-type-badge img {
  width: 16px;
  height: 16px;
}

.play-marker {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-marker img {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(28, 7, 11, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #311114;
  background: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
}

.media-card-body {
  padding: 12px;
}

.notice-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 17px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-card img {
  width: 32px;
  height: 32px;
}

.notice-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.media-card.is-previewing .play-marker {
  opacity: 0;
  transform: scale(0.92);
}

.play-marker {
  transition: opacity 160ms ease, transform 160ms ease;
}

.media-id-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255, 247, 236, 0.82);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.media-card-body .media-id-chip {
  margin-bottom: 8px;
}
