/* frontend-clean.css — cleaned UI polish without changing site direction */
:root {
  --clean-bg: #09090d;
  --clean-bg-2: #111118;
  --clean-panel: rgba(22, 22, 30, .86);
  --clean-panel-2: rgba(31, 31, 42, .92);
  --clean-card: #17171f;
  --clean-card-2: #22222c;
  --clean-text: #f8f8fb;
  --clean-muted: #b8bac7;
  --clean-soft: #f7d0bf;
  --clean-accent: #ff2d45;
  --clean-accent-2: #ffcc28;
  --clean-border: rgba(255, 255, 255, .09);
  --clean-border-strong: rgba(255, 255, 255, .15);
  --clean-shadow: 0 18px 45px rgba(0, 0, 0, .34);
  --clean-radius: 18px;
}

html { scroll-behavior: smooth; background: var(--clean-bg); }
body.site-body,
body {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 45, 69, .16), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(255, 204, 40, .10), transparent 28rem),
    linear-gradient(180deg, #0b0b10 0%, #09090d 38%, #0d0d13 100%);
  color: var(--clean-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-page { min-height: 100vh; }
a { transition: color .18s ease, opacity .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { opacity: .94; }
img, video { max-width: 100%; height: auto; }
img[data-src] { background: linear-gradient(135deg, #16161d, #24242d); }

/* Header */
.site-header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 8, 12, .96), rgba(8, 8, 12, .82) 72%, rgba(8, 8, 12, .08)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .30);
}
.site-header-main {
  min-height: 82px;
  padding-top: 14px !important;
  padding-bottom: 14px;
  gap: 18px;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo-text,
.title-h1 {
  display: inline-flex;
  align-items: center;
  color: #ff2d45 !important;
  font-size: clamp(25px, 3vw, 36px) !important;
  font-weight: 950 !important;
  letter-spacing: .035em;
  line-height: 1.08 !important;
  text-shadow: 0 0 20px rgba(255, 45, 69, .34);
}
/*.site-logo-text::before {*/
/*  content: "";*/
/*  width: 11px;*/
/*  height: 32px;*/
/*  margin-right: 11px;*/
/*  border-radius: 999px;*/
/*  background: linear-gradient(180deg, var(--clean-accent), var(--clean-accent-2));*/
/*  box-shadow: 0 0 24px rgba(255, 45, 69, .52);*/
/*}*/
.site-nav { gap: 10px !important; }
.site-nav > .relative > a,
.site-nav #toggleMenu,
.site-mobile-toplinks a {
  color: rgba(255, 255, 255, .86) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  text-decoration: none;
}
.site-nav > .relative > a:hover,
.site-nav #toggleMenu:hover,
.site-mobile-toplinks a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .10);
}
.site-mobile-toplinks {
  min-height: 34px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-mobile-toplinks::-webkit-scrollbar { display: none; }
.site-mobile-actions form,
.site-nav form { margin: 0; }
.site-search-input {
  min-width: 210px;
  height: 42px;
  color: #fff !important;
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 999px 0 0 999px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.site-search-input::placeholder { color: rgba(255,255,255,.55); }
.site-search-input:focus {
  background: rgba(255, 255, 255, .13) !important;
  border-color: rgba(255, 204, 40, .55) !important;
}
.site-search-button {
  height: 42px;
  color: #151515 !important;
  background: linear-gradient(135deg, var(--clean-accent-2), #ff9f1c) !important;
  border: 1px solid rgba(255, 204, 40, .65) !important;
  border-radius: 0 999px 999px 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 9px 24px rgba(255, 204, 40, .17);
}
#dropdownBtn {
  color: #fff !important;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
}
#dropdownMenu,
.menu-dropdown {
  border: 1px solid var(--clean-border-strong);
  border-radius: 16px !important;
  overflow: hidden;
  background: rgba(22, 22, 30, .98) !important;
  box-shadow: var(--clean-shadow);
  backdrop-filter: blur(18px);
}
#dropdownMenu .bg-nord5,
.menu-dropdown .bg-nord5 { background: transparent !important; color: #fff !important; }
#dropdownMenu a,
.menu-dropdown a {
  color: rgba(255,255,255,.86) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#dropdownMenu a:hover,
.menu-dropdown a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
}
.site-header-spacer { padding-top: 88px; }

/* Layout sections */
.sm\:container, .container { position: relative; }
.sm\:container.mx-auto.mb-5.px-4 {
  margin-bottom: 34px !important;
}
.flex.items-center.justify-between.pt-10.pb-6 {
  padding-top: 34px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 18px;
}
h1, h2, h3,
.text-2xl.font-bold {
  color: #fff !important;
  letter-spacing: .02em;
}
/*.text-2xl.font-bold::before {*/
/*  content: "";*/
/*  display: inline-block;*/
/*  width: 8px;*/
/*  height: 24px;*/
/*  margin-right: 10px;*/
/*  vertical-align: -4px;*/
/*  border-radius: 999px;*/
/*  background: linear-gradient(180deg, var(--clean-accent), var(--clean-accent-2));*/
/*}*/
a[href*="type"].inline-flex,
a.inline-flex.items-center.text-secondary {
  color: #111 !important;
  background: linear-gradient(135deg, var(--clean-accent-2), #ff9f1c) !important;
  border: 1px solid rgba(255,204,40,.48);
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(255, 204, 40, .13);
}
.grid { align-items: stretch; }

/* Cards */
.video-card, .stui-vodlist__box, .vod-card, .list-card, .thumbnail.group {
  background: linear-gradient(180deg, var(--clean-card), var(--clean-card-2)) !important;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.video-card:hover, .stui-vodlist__box:hover, .vod-card:hover, .list-card:hover, .thumbnail.group:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 40, .20);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}
.video-card .relative,
.thumbnail.group .relative { border-radius: calc(var(--clean-radius) - 2px) calc(var(--clean-radius) - 2px) 0 0; }
.video-card img,
.thumbnail.group img,
.stui-vodlist__thumb {
  display: block;
  width: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .22s ease, filter .22s ease;
}
.video-card:hover img,
.thumbnail.group:hover img { transform: scale(1.035); filter: saturate(1.08) contrast(1.03); }
.video-card .my-2,
.thumbnail.group .my-2 { margin: 0 !important; padding: 6px 12px; }
.video-card .my-2:first-of-type,
.thumbnail.group .my-2:first-of-type { padding-top: 12px; }
.video-card .my-2:last-of-type,
.thumbnail.group .my-2:last-of-type { padding-bottom: 14px; }
.video-card a,
.thumbnail.group a { text-decoration: none; }
.video-card .text-secondary,
.thumbnail.group .text-secondary {
  color: #fff !important;
  font-weight: 750;
  line-height: 1.45;
}
.video-card .text-nord4,
.thumbnail.group .text-nord4 { color: var(--clean-muted) !important; }
.absolute.bottom-1.right-1 {
  bottom: 8px !important;
  right: 8px !important;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px !important;
  background: rgba(0,0,0,.68) !important;
  backdrop-filter: blur(8px);
}

/* Common text */
.font-medium { font-weight: 650; word-break: break-word; }
.vod_desc { line-height: 1.85 !important; font-size: 16px; color: rgba(255,255,255,.88) !important; }
.truncate-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.truncate-2, .truncate-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-2 { -webkit-line-clamp: 2; }
.truncate-3 { -webkit-line-clamp: 3; }

/* Breadcrumb */
nav[aria-label="breadcrumb"] ol {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--clean-muted);
}
nav[aria-label="breadcrumb"] li { min-width: 0; word-break: break-all; flex-shrink: 1; }
nav[aria-label="breadcrumb"] li + li::before { content: "›"; padding: 0 8px; color: rgba(255,255,255,.38); }
nav[aria-label="breadcrumb"] li a { text-decoration: none; display: inline-block; width: max-content; color: rgba(255,255,255,.82); }
nav[aria-label="breadcrumb"] li[aria-current="page"] { color: #fff; font-weight: 800; }

/* Buttons / inputs */
.btn, button, input[type="submit"] {
  border-radius: 999px;
  border: 1px solid var(--clean-border);
  min-height: 40px;
}
input, select, textarea { max-width: 100%; border-radius: 12px; }

/* Footer */
.site-footer {
  margin-top: 54px;
  padding-bottom: 28px;
}
.site-footer-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 24px;
  padding: 30px;
  color: rgba(255,255,255,.82);
  background:
    linear-gradient(135deg, rgba(255,45,69,.13), transparent 36%),
    linear-gradient(180deg, rgba(31,31,42,.94), rgba(18,18,25,.94));
  border: 1px solid var(--clean-border-strong);
  border-radius: 26px;
  box-shadow: var(--clean-shadow);
  overflow: hidden;
}
.site-footer-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 28%, transparent 72%, rgba(255,204,40,.07));
}
.site-footer-brand,
.site-footer-content,
.site-footer-contact { position: relative; z-index: 1; }
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .03em;
  text-decoration: none;
}
/*.site-footer-logo::before {*/
/*  content: "";*/
/*  width: 10px;*/
/*  height: 28px;*/
/*  margin-right: 10px;*/
/*  border-radius: 999px;*/
/*  background: linear-gradient(180deg, var(--clean-accent), var(--clean-accent-2));*/
/*}*/
.site-footer-subtitle { margin-top: 10px; color: var(--clean-accent-2); font-weight: 750; }
.site-footer-content { line-height: 1.8; }
.site-footer-content p + p { margin-top: 10px; }
.site-footer-content strong { color: #fff; }
.site-footer-contact {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer-contact a {
  color: #fff !important;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 9px 14px;
}
.site-footer-contact a:hover { background: rgba(255,255,255,.12); }
footer .border-t { min-height: auto !important; height: auto !important; }

@media (max-width: 1280px) {
  .site-nav { gap: 6px !important; }
  .site-nav > .relative > a,
  .site-nav #toggleMenu { padding-left: 9px; padding-right: 9px; }
}

@media (max-width: 1024px) {
  .phone-only { display: flex !important; }
  .site-header-main { min-height: 72px; padding-top: 10px !important; padding-bottom: 10px; }
  .site-header-spacer { padding-top: 108px; }
  .site-mobile-actions { gap: 8px !important; }
  .site-mobile-actions form .px-4 { padding-left: 0 !important; padding-right: 0 !important; }
  .site-search-input { min-width: 0; width: 150px; height: 38px; padding-left: 12px !important; padding-right: 10px !important; }
  .site-search-button { height: 38px; padding-left: 12px !important; padding-right: 12px !important; }
  #dropdownBtn { width: 38px; height: 38px; }
  #dropdownMenu { right: 0; width: min(82vw, 310px) !important; max-height: calc(100vh - 116px) !important; }
}

@media (max-width: 768px) {
  .sm\:container, .container { width: 100%; max-width: 100%; }
  .content-without-search { padding-left: 12px; padding-right: 12px; }
  .site-logo-text, .title-h1, h1 { font-size: 23px !important; }
  .site-logo-text::before { height: 26px; width: 9px; margin-right: 8px; }
  .site-mobile-actions { flex: 1; justify-content: flex-end; }
  .site-search-input { width: 118px; }
  .site-search-button span { margin-left: 0 !important; }
  .vod_desc { font-size: 15px !important; line-height: 1.75 !important; }
  nav[aria-label="breadcrumb"] ol { gap: 2px !important; font-size: 13px; }
  .grid.grid-cols-2 { gap: 14px !important; }
  .video-card .my-2, .thumbnail.group .my-2 { padding-left: 10px; padding-right: 10px; }
  .flex.items-center.justify-between.pt-10.pb-6 { padding-top: 24px !important; }
  .text-2xl.font-bold { font-size: 20px !important; }
  .site-footer { margin-top: 36px; }
  .site-footer-panel { grid-template-columns: 1fr; padding: 22px; border-radius: 20px; }
  .site-footer-logo { font-size: 24px; }
  .site-footer-contact { flex-direction: column; }
}

@media (max-width: 420px) {
  .site-header-main { gap: 8px; }
  .site-logo-wrap { flex: 0 0 auto; max-width: 42%; }
  .site-logo-text, .title-h1 { font-size: 20px !important; }
  .site-search-input { width: 94px; }
  .site-search-button { padding-left: 10px !important; padding-right: 10px !important; }
  .site-search-button span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
