/* PornBabeDreams — dark tube theme (ref: pornporngirl.com) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #edff00;
  --accent-hover: #e5f600;
  --bg: #000;
  --panel: #161616;
  --text: #fff;
  --muted: #bfbfbf;
  --dim: #888;
}

html { -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

/* ---- header ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--bg);
  box-shadow: 0 0 3px 0 var(--panel);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.search {
  display: flex;
  flex: 1;
  max-width: 480px;
  margin-left: auto;
}
.search input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid #2a2a2a;
  border-right: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 3px 0 0 3px;
  outline: none;
}
.search input:focus { border-color: var(--accent); }
.search button {
  background: var(--accent);
  border: none;
  padding: 0 14px;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  font-size: 15px;
}
.cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px 10px;
  max-width: 1400px;
  margin: 0 auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: 0 0 auto;
  background: var(--panel);
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.cats a:hover { color: var(--accent); }
.cats a.active {
  color: #000;
  background: var(--accent);
  font-weight: 700;
}

/* ---- layout ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 108px 8px 30px; /* room for fixed header */
}
body[data-page="watch"] .container { padding-top: 66px; }

h1, h2 {
  font-size: 20px;
  text-transform: uppercase;
  margin: 15px 5px 10px 0;
}
h1 span { color: var(--accent); }

/* ---- video grid ---- */
.grid {
  display: flex;
  flex-wrap: wrap;
}
.item {
  width: 50%;
  padding: 4px;
}
.item a {
  display: block;
  border: 1px solid transparent;
  background: #0a0a0a;
}
.item a:hover { border-color: var(--accent-hover); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 2px;
}
.site-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  background: rgba(0,0,0,.7);
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: .5px;
}
.item .info { padding: 6px 8px 8px; }
.item .title {
  font-size: 15px;
  text-transform: capitalize;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
}
.item .views {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

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

/* ---- watch page ---- */
.player-wrap {
  position: relative;
  max-width: 1100px;
  margin: 10px auto 0;
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}
.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.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: 1100px;
  margin: 14px auto 6px;
  font-size: 20px;
  text-transform: none;
}
.watch-meta {
  max-width: 1100px;
  margin: 0 auto;
  color: var(--dim);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.watch-meta b { color: var(--accent); font-weight: 500; }
.tags {
  max-width: 1100px;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags a {
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}
.tags a:hover { color: var(--accent); }
.related { margin-top: 24px; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--panel);
  margin-top: 30px;
  padding: 20px 10px 30px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  line-height: 22px;
}
.footer a { color: inherit; text-decoration: underline; }

/* ---- responsive ---- */
@media (min-width: 600px)  { .item { width: 33.3333%; } }
@media (min-width: 900px)  { .item { width: 25%; } }
@media (min-width: 1200px) { .item { width: 20%; } }
@media (max-width: 640px) {
  .logo { font-size: 18px; }
  .container { padding-top: 100px; }
}
