
:root {
  --bg: #0f1223;
  --panel: #151936;
  --muted: #aab0d6;
  --text: #e9ecff;
  --accent: #7aa2ff;
  --accent-2: #15d1a3;
  --danger: #ff7a7a;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: -o-radial-gradient(20% 0%, 1200px 800px, #1a1f47 0%, var(--bg) 50%);
  background: radial-gradient(1200px 800px at 20% 0%, #1a1f47 0%, var(--bg) 50%);
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(21,25,54,.9)), to(rgba(21,25,54,.6)));
  background: -o-linear-gradient(top, rgba(21,25,54,.9), rgba(21,25,54,.6));
  background: linear-gradient(180deg, rgba(21,25,54,.9), rgba(21,25,54,.6));
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}

.brand .logo {
  width: 98px;
  height: auto;
  border-radius: 8px;
}

.brand .logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.nav-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  opacity: .85;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(122,162,255,.12);
  opacity: 1;
}

.hero {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 24px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  margin-top: 28px;
}

@media (max-width: 840px) {
  .hero { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
}

.panel {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.04)), to(rgba(255,255,255,.02)));
  background: -o-linear-gradient(top, rgba(255,255,255,.04), rgba(255,255,255,.02));
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}

.panel .pad {
  padding: 20px;
}

.headline {
  font-size: clamp(26px, 3vw, 36px);
  margin: 8px 0 6px;
}

.sub {
  color: var(--muted);
  margin-top: 0;
}

.badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122,162,255,.15);
  color: #cfe0ff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
}

.current-card {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: .3fr 16px .7fr;
  grid-template-columns: .3fr .7fr;
  gap: 16px;
}
.current-card a {
  color: #fff;
  text-decoration: none;
}
.cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: -o-linear-gradient(315deg,#2a2f61,#121635);
  background: linear-gradient(135deg,#2a2f61,#121635);
  border: 1px solid rgba(255,255,255,.1);
  display: -ms-grid;
  display: grid;
  place-items: center;
  color: #8ea2ff;
}

.cover svg {
  width: 56%;
  height: auto;
  opacity: .8;
}

.kpis {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 12px 1fr 12px 1fr;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 10px;
}

.kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.kpi .k {
  font-weight: 800;
  font-size: 20px;
}

.kpi .l {
  color: var(--muted);
  font-size: 12px;
}

.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: -o-linear-gradient(315deg, var(--accent), #567dff);
  background: linear-gradient(135deg, var(--accent), #567dff);
  color: white;
  text-decoration: none;
}

.btn.ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.btn + .btn {
  margin-left: 8px;
}
@media (max-width: 520px) {
  .current-card { display: block; }
  .kpis { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
}

/* Archive */
.filters {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1.2fr 10px 1fr 10px 1fr 10px 1fr 10px 1fr;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 10px;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
}

@media (max-width: 900px) {
  .filters { -ms-grid-columns: 1fr 1fr; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .filters { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
}

label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

input[type="text"], select, input[type="date"], input[type="number"] {
  width: 100%;
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px;
  outline: none;
}

/* === Dropdown (select) styling === */
select {
	background-color: rgba(255, 255, 255, .04);
	color: #e4e8ff;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 8px;
	padding: 10px;
	font-size: 0.95rem;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e4e8ff' height='16'  width='16' ><path d='M7 10l5 5 5-5z'/></svg>");
	/*background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect x='10' y='10' width='80' height='80' fill='%230000FF'/></svg>");*/
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}

/* Dropdown hover/focus states */
select:hover {
  border-color: #4c58b1;
}

select:focus {
  outline: none;
  border-color: #6e7cff;
  -webkit-box-shadow: 0 0 0 2px rgba(110,124,255,0.2);
          box-shadow: 0 0 0 2px rgba(110,124,255,0.2);
}

/* Option items (for browsers that support it) */
option {
  background-color: #0f1223;
  color: #e4e8ff;
}

.grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .grid { -ms-grid-columns: (minmax(0, 1fr))[2]; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
}

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100%;
}

.card .thumb {
  aspect-ratio: 16/9;
  background: -o-linear-gradient(315deg,#2b2f5e,#15193a);
  background: linear-gradient(135deg,#2b2f5e,#15193a);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  place-items: center;
}

.card .thumb svg {
  width: 40%;
  height: auto;
  opacity: .8;
}

.card .body {
  padding: 14px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cover,
.card .thumb {
  position: relative;
  overflow: hidden;
}

.cover img,
.card .thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(122,162,255,.15);
  border: 1px solid rgba(122,162,255,.25);
  color: #cfe0ff;
  border-radius: 999px;
}

.rating {
  color: gold;
  letter-spacing: 1px;
}
.no-rating {
  font-size: .6em;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 28px 0 36px;
  font-size: 13px;
  opacity: .8;
}

.hidden {
  display: none !important;
}