/* SexyGirlTop — dark slate theme with emerald accent */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #19c37d;
  --accent-dim: rgba(25, 195, 125, .14);
  --bg: #1c1f26;
  --panel: #262a33;
  --panel-2: #2e333e;
  --line: #353b47;
  --text: #eceff4;
  --muted: #aab1bd;
  --dim: #7a8290;
  --radius: 10px;
}

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

/* ---- header ---- */
.header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 10px;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.search {
  display: flex;
  flex: 1;
  max-width: 460px;
  margin-left: auto;
}
.search input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-right: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--accent); }
.search button {
  background: var(--accent);
  color: #0c2018;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}
.search button:hover { filter: brightness(1.08); }
.tabs {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 16px;
}
.tabs a {
  padding: 8px 14px 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---- layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 14px 32px;
}
h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 18px;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 14px;
}

/* ---- video grid ---- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease;
}
.card a:hover { border-color: var(--accent); }
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}
.card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.card a:hover .thumb img { transform: scale(1.04); }
.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(12, 14, 18, .8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}
.card .card-body { padding: 10px 12px 12px; }
.card .title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.card a:hover .title { color: var(--accent); }
.card .meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--dim);
}
.like-pill {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- pagination (segmented control) ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px auto 8px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.pagination a, .pagination span {
  min-width: 42px;
  text-align: center;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  border-right: 1px solid var(--line);
  color: var(--muted);
}
.pagination a:last-child, .pagination span:last-child { border-right: none; }
.pagination a:hover { color: var(--accent); background: var(--panel-2); }
.pagination .current {
  background: var(--accent);
  color: #0c2018;
  cursor: default;
}

/* ---- categories ---- */
.cats-section { margin-top: 40px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cats-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.cats-grid a:hover {
  border-left-color: var(--accent);
  color: var(--text);
}
.cats-grid .count {
  color: var(--dim);
  font-size: 13px;
  font-weight: 400;
}

/* ---- status / spinner ---- */
.feed-status {
  text-align: center;
  color: var(--dim);
  padding: 30px 10px;
}
.feed-status a { color: var(--accent); text-decoration: underline; cursor: pointer; }
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- watch page ---- */
.player-panel {
  max-width: 1020px;
  margin: 4px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
}
.player-loading, .player-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--dim);
}
.player-error a { color: var(--accent); text-decoration: underline; }
.watch-title {
  max-width: 1020px;
  margin: 18px auto 8px;
  font-size: 22px;
}
.watch-meta {
  max-width: 1020px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.tags {
  max-width: 1020px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags a {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 20px;
  transition: border-color .15s ease, color .15s ease;
}
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.related { margin-top: 34px; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 22px 14px 32px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  line-height: 22px;
}
.footer a { color: var(--muted); text-decoration: underline; }

/* ---- responsive ---- */
@media (min-width: 560px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px)  {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1120px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .header-top { flex-wrap: wrap; }
  .search { flex-basis: 100%; max-width: none; }
}
