.tv-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line, rgba(120, 167, 214, 0.22));
  background: rgba(7, 19, 33, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tv-site-header__inner {
  width: min(100% - 2rem, var(--max-width, var(--max, 1180px)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.tv-site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--text, #e8eff8);
  font-weight: 800;
  line-height: 1.2;
}

.tv-site-brand:hover {
  color: var(--text, #e8eff8);
}

.tv-site-brand__logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.tv-site-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tv-site-brand__title {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.tv-site-brand__subtitle {
  color: var(--muted, #a7b8cb);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.tv-site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.tv-site-nav a {
  color: var(--muted, #a7b8cb);
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
}

.tv-site-nav a:hover,
.tv-site-nav a[aria-current="page"] {
  color: var(--text, #e8eff8);
}

.tv-site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent-2, #7fe4b0);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.tv-site-brand:focus-visible,
.tv-site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--accent-2, #7fe4b0);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 4.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(120, 167, 214, 0.14);
  color: var(--muted, #a7b8cb);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer__links a {
  color: var(--muted, #a7b8cb);
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--text, #e8eff8);
}

.media-proof-grid,
.media-range-grid,
.media-technical-layout,
.studio-gallery {
  display: grid;
  gap: 1rem;
}

.media-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-range-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
}

.media-technical-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
}

.studio-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card,
.studio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, rgba(120, 167, 214, 0.2));
  border-radius: var(--radius, 20px);
  background: linear-gradient(180deg, rgba(21, 39, 63, 0.96), rgba(16, 29, 47, 0.98));
  box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, 0.2));
}

.media-card__body,
.studio-card__body {
  padding: 1rem;
}

.media-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #02070d;
}

.media-card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-card__image-link .media-card__image {
  height: 100%;
}

.media-card__image-link:focus-visible {
  outline: 3px solid var(--accent-2, #7fe4b0);
  outline-offset: -5px;
}

.media-card__body > :first-child,
.studio-card__body > :first-child {
  margin-top: 0;
}

.media-card__body > :last-child,
.studio-card__body > :last-child {
  margin-bottom: 0;
}

.media-card h3,
.studio-card h3 {
  margin: 0 0 0.55rem;
}

.media-card p,
.studio-card p {
  color: var(--muted, #a8b7c9);
}

.media-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #02070d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.media-player--16x9 {
  aspect-ratio: 16 / 9;
}

.media-player--9x16 {
  aspect-ratio: 9 / 16;
}

.media-player iframe,
.media-player__button,
.media-player__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-player__button,
.media-player__fallback {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #02070d;
  cursor: pointer;
  text-decoration: none;
}

.media-player__button {
  display: none;
  font: inherit;
}

.media-enhanced .media-player__button {
  display: grid;
}

.media-enhanced .media-player__fallback {
  display: none;
}

.media-player__button img,
.media-player__fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #02070d;
}

.media-player__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(1, 7, 13, 0.72));
  pointer-events: none;
}

.media-player__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(5, 19, 33, 0.86);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background-color 160ms ease;
}

.media-player__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-top: 0.7rem solid transparent;
  border-bottom: 0.7rem solid transparent;
  border-left: 1.05rem solid #fff;
}

.media-player__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.media-player__button:hover .media-player__play,
.media-player__fallback:hover .media-player__play {
  background: rgba(20, 120, 151, 0.95);
  transform: translate(-50%, -50%) scale(1.06);
}

.media-player__button:focus-visible,
.media-player__fallback:focus-visible,
.studio-card__link:focus-visible,
.media-lightbox__close:focus-visible,
.media-lightbox__full:focus-visible {
  outline: 3px solid var(--accent-2, #7fe4b0);
  outline-offset: -5px;
}

.media-external-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 750;
}

.media-transition {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(127, 228, 176, 0.25);
  border-radius: 16px;
  color: var(--text, #f3f7fb);
  background: rgba(127, 228, 176, 0.07);
  text-align: center;
}

.media-transition strong {
  color: var(--accent-2, #7fe4b0);
}

.shorts-results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.shorts-results-grid > * {
  grid-column: span 2;
}

.shorts-results-grid > :nth-child(4) {
  grid-column: 2 / span 2;
}

.shorts-results-grid > :nth-child(5) {
  grid-column: 4 / span 2;
}

.shorts-results-grid .media-card {
  max-width: 24rem;
  width: 100%;
  justify-self: center;
}

.studio-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.studio-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.57 / 1;
  object-fit: contain;
  background: #02070d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-card__link:hover h3 {
  color: var(--accent, #58c4dd);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(1, 7, 13, 0.92);
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox__panel {
  position: relative;
  width: min(96vw, 112rem);
  max-height: 96vh;
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(120, 167, 214, 0.35);
  border-radius: 20px;
  background: #09192a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.media-lightbox__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.media-lightbox__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.media-lightbox__close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(120, 167, 214, 0.4);
  border-radius: 12px;
  color: #fff;
  background: #10243a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.media-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(96vh - 11rem);
  object-fit: contain;
  background: #02070d;
}

.media-lightbox__caption {
  margin: 0.8rem 0 0;
  color: var(--muted, #a8b7c9);
}

.media-lightbox__full {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 750;
}

body.media-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .media-proof-grid,
  .studio-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shorts-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shorts-results-grid > *,
  .shorts-results-grid > :nth-child(4),
  .shorts-results-grid > :nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .tv-site-header {
    position: static;
  }

  .tv-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0 0.85rem;
  }

  .tv-site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem 1rem;
  }
}

@media (max-width: 760px) {

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-proof-grid,
  .media-range-grid,
  .media-technical-layout,
  .studio-gallery,
  .shorts-results-grid {
    grid-template-columns: 1fr;
  }

  .media-player__play {
    width: 3.6rem;
    height: 3.6rem;
  }

  .media-player__label {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.65rem;
    font-size: 0.82rem;
  }

  .media-lightbox {
    padding: 0.4rem;
  }

  .media-lightbox__panel {
    width: 100%;
    padding: 0.75rem;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-player__play {
    transition: none;
  }
}
