/* AnyXXX theme - task #10272 design (purple accent #ae49c9, hover #3eb9e7).
   Top part = the design stylesheet; below = engine blocks (watch page, votes,
   comments, account, legal, age gate, 404) recoloured through the variables. */

:root {
  --bg: #161019;
  --surface: #312438;
  --surface-2: #3d2d46;
  --line: #4a3856;
  --text: #fff;
  --muted: #92809e;
  --muted-2: #6f5f7a;
  --accent: #ae49c9;
  --accent-2: #3eb9e7;
  --radius: 5px;
  --display: "Poppins", sans-serif;
  --body: "Poppins", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background-color: #161019;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #92809e;
    line-height: 1.5;
    text-align: center;
}

a {
    color: #fff;
    text-decoration: none;
}
a:hover {
    color: #3eb9e7;
}

h1, h2, h3 {
    margin: 10px auto 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
h1 small, h2 small, h3 small {
    font-weight: 400;
    color: #92809e;
}

input[type=text] {
    width: 70%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
    color: #111;
    font-weight: bold;
}
input[type=submit] {
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background-color: #ae49c9;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.input:focus {
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.75);
}

header {
    width: 100%;
    max-width: 1230px;
    margin: 10px auto 0 auto;
    background-color: #312438;
    border-radius: 5px;
    font-size: 30px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

header span {
    color: #ae49c9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.thumbs {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.thumb {
    background: #312438;
    border-radius: 5px;
    width: 95%;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.thumb-img {
    position: relative;
    padding: 56.25% 0 0 0;
}

.thumb-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.count, .pubdate, .duration {
    position: absolute;
    top: 2px;
    padding: 0 5px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    line-height: 20px;
    z-index: 2;
}

.count, .pubdate {
    right: 2px;
}

.duration {
    left: 2px;
}

.title {
    width: 100%;
    height: 20px;
    margin: 5px 0;
    padding: 0 5px;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
}

/* One line of chips: a video can carry dozens of tags, the rest is clipped. */
.tags {
    padding: 0 10px;
    height: 22px;
    margin: 5px 0;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
}

.tags a {
    padding: 0 4px;
    border-radius: 3px;
    background-color: #161019;
    display: inline-block;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
}

.tags a:hover {
    background-color: #3eb9e7;
    color: #fff;
}

.tags a:first-child {
    background-color: #ae49c9;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
    font-size: 18px;
}

.pagination:empty {
    display: none;
}

.pagination a, .pagination span {
    display: inline-block;
    border: 1px solid #ae49c9;
    padding: 4px 12px;
}

.pagination a {
    background: #ae49c9;
}

footer {
    margin-top: 20px;
    background-color: #312438;
}

footer > .info {
    padding: 10px;
    margin-top: 10px;
}

.langs {
    padding-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

@media screen and (min-width: 500px) {
    .thumb {
        width: calc(50% - 10px);
    }
}

@media screen and (min-width: 700px) {
    .thumb {
        width: calc(33.33% - 10px);
    }
}

@media screen and (min-width: 900px) {
    .thumb {
        width: calc(25% - 10px);
    }
}

.fff {
    margin: 10px auto;
    background-color: #312438;
    padding: 10px 20px;
    color: white;
}

.info {
    margin: 20px auto;
}

.video-tags {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-tags > a {
    display: inline-block;
    background: #ae49c9;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 3px;
}

/* ---- engine additions in the design palette ---- */

.logo {
    padding-top: 10px;
}
.logo a:hover {
    color: #fff;
}
.search {
    margin-top: 5px;
    font-size: 14px;
    text-transform: none;
}
.empty {
    width: 100%;
    padding: 40px 0;
}
.video-tags > a.active,
.video-tags > a:hover {
    background: #3eb9e7;
    color: #fff;
}
.video-tags > a.vstar {
    background: #161019;
    border: 1px solid #ae49c9;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
main.watch, main.removed, main.notfound {
    padding: 0 10px;
}
.watch .player {
    margin-top: 20px;
}
.watch h1 {
    margin: 15px 0 5px;
}
.watch-meta i {
    color: #ae49c9;
}
.comments, .account, .dmca, .legal {
    text-align: left;
}
.watch > h2, .removed h2 {
    margin-top: 30px;
}
.seo-text {
    color: #92809e;
}
.gt-preview {
    border-radius: 0;
}

/* ---- engine blocks (default theme, recoloured) ---- */

/* Watch page */
.watch {
  max-width: 1000px;
}
.player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
}
.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.watch-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 20px 0 8px;
}
.watch-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.watch-desc {
  color: #d2d2d8;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0 0 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.related {
  margin-top: 36px;
}

/* Watch-page taxonomy chips: categories, models, tags. One pill shape,
   the kind told apart by the accent - category filled, model outlined in
   accent, tag muted. */
.watch-taxo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}
.watch-taxo:not(:has(.vchip)) {
  display: none;
}
.vchip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.vchip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}
.vcat {
  background: var(--surface-2);
  font-weight: 600;
}
.vstar {
  border-color: rgba(255, 90, 31, 0.45);
  color: var(--accent-2);
}
.vstar::before {
  content: "\2605";
  margin-right: 6px;
  font-size: 11px;
  color: var(--accent);
}
.vtag {
  color: var(--muted);
}

/* Taxonomy on-page SEO text ({seo_text}): a quiet paragraph under the
   listing, narrow enough to read, operator line breaks kept. */
.seo-text {
  max-width: 820px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}
.seo-text a {
  color: var(--accent-2);
}

/* Removed-video page: a centred notice card above the related grid. */
.removed-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.removed-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}
.removed-text {
  color: var(--muted);
  margin: 0 0 24px;
}
.removed-home {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  background: var(--accent);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.removed-home:hover {
  background: var(--accent-2);
  color: #fff;
}
.removed .related {
  margin-top: 48px;
}

/* Age gate */
body.age-gate {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% -10%, #1c1c26, var(--bg) 60%);
}
.gate-card {
  max-width: 460px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.gate-logo {
  height: 44px;
  margin: 0 auto 12px;
}
.gate-brand {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}
.gate-card h1 {
  font-size: 22px;
  margin: 6px 0 14px;
}
.gate-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.gate-enter {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gate-enter:hover {
  background: var(--accent-2);
}
.gate-leave {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.gate-leave:hover {
  color: var(--text);
}
.gate-fine {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted-2);
}

/* 404 page */
.notfound {
  text-align: center;
  padding: 80px 0 100px;
}
.notfound-code {
  font-family: var(--display);
  font-size: 110px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 2px;
}
.notfound-title {
  font-size: 26px;
  margin: 6px 0 10px;
}
.notfound-text {
  color: var(--muted);
  margin-bottom: 22px;
}
.notfound-home {
  color: var(--accent-2);
  font-weight: 600;
}
.notfound-home:hover {
  color: var(--accent);
}

/* Account pages (login / register) */
main.account {
  max-width: 420px;
}
.account h1 {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.account-form input {
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.account-form input:focus {
  border-color: var(--accent);
}
.account-form button {
  height: 46px;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.account-form button:hover {
  background: var(--accent-2);
}
.account > p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.account > p a {
  color: var(--accent-2);
}
.account > p a:hover {
  text-decoration: underline;
}
.form-error {
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid var(--accent);
  color: #ffb99a;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .header-auth {
    gap: 8px;
  }
  .header-user {
    display: none;
  }
  .account h1 {
    font-size: 32px;
  }
}

/* Video like / dislike (SP2) */
.votes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.vote-form {
  margin: 0;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.vote-btn:hover {
  border-color: var(--muted);
}
.vote-like.on {
  border-color: var(--accent);
  color: var(--accent);
}
.vote-dislike.on {
  border-color: var(--muted);
  background: var(--surface-2);
}
.vote-count {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.vote-btn.on .vote-count {
  color: inherit;
}
.rating-bar {
  flex: 0 1 160px;
  height: 6px;
  border-radius: 999px;
  background: #b23b2e;
  overflow: hidden;
}
.rating-bar[data-empty] {
  background: var(--line);
}
.rating-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}
.rating-bar[data-empty] .rating-fill {
  width: 0 !important;
}

/* Comments (SP3) */
.comments {
  margin-top: 28px;
}
.comment-note {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 12px;
}
.comment-login {
  color: var(--muted);
}
.comment-login a {
  color: var(--accent-2);
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 720px;
}
.comment-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus {
  border-color: var(--accent);
}
.comment-form button {
  align-self: flex-start;
  height: 40px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.comment-form button:hover {
  background: var(--accent-2);
}
.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.comment-author {
  font-weight: 700;
  font-size: 14px;
}
.comment-ago {
  color: var(--muted);
  font-size: 12px;
}
.comment-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-del {
  margin-top: 6px;
}
.comment-del button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.comment-del button:hover {
  color: var(--accent);
}

/* Performer profile block ({model_profile} token on model_main). */
.model-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 4px 0 22px;
  padding: 16px;
  background: var(--card, #1a1d22);
  border-radius: 10px;
}
.model-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.model-info {
  min-width: 0;
  flex: 1;
}
.model-aka {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.model-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0 0 12px;
  font-size: 14px;
}
.model-stats dt {
  color: var(--muted);
}
.model-stats dd {
  margin: 0;
  color: var(--text);
}
.model-bio {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}
@media (max-width: 560px) {
  .model-profile {
    flex-direction: column;
  }
  .model-photo {
    width: 120px;
    height: 120px;
  }
}

/* Legal pages (/dmca, /2257). Both are prose plus, on /dmca, the takedown
   form; the form language mirrors .account-form so the site keeps one look.
   .input and .btn are generic because the dmca template has always asked for
   them by those names. */
.legal,
.dmca {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 32px;
}
.legal h1,
.dmca h1 {
  font-family: var(--display);
  font-weight: 400;
  margin: 24px 0 18px;
}
.legal h2,
.dmca h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.legal p,
.dmca p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.legal a,
.dmca a {
  color: var(--accent);
}
.legal-block,
.dmca-agent,
.dmca-form,
.dmca-done {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.legal-contact,
.dmca-agent-block {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* Takedown form. */
.dmca-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dmca-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  height: 44px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus {
  border-color: var(--accent);
}
textarea.input {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
/* The sworn statement is a checkbox next to its own sentence, not a stacked
   field: the label must sit inline or the tick floats away from its text. Two
   classes deep on purpose - `.dmca-form label` above is more specific than a
   bare `.dmca-check` and would keep it stacked. */
.dmca-form .dmca-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.dmca-form .dmca-check input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}
.btn {
  align-self: flex-start;
  height: 46px;
  padding: 0 22px;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--accent-2);
}

.watch .votes {
    justify-content: center;
}
