/* VnPhich, direction A "Lưới dày": charcoal ground, coral accent, Be Vietnam Pro.
   Mobile first; the tab bar shows below 1024px, the desktop nav above. No framework. */

:root {
    --bg: #0F0F12;
    --surface: #1A1A20;
    --surface-2: #1F1F26;
    --surface-3: #24242C;
    --border: #2A2A33;
    --border-2: #3A3A44;
    --text: #F2F2F5;
    --text-2: #C8C8D2;
    --muted: #A1A1AD;
    --accent: #D0343A;         /* fills: white text on it is 4.9:1 */
    --accent-hover: #B82C32;
    --accent-text: #FF8A8D;    /* text and icons on the ground: 7.5:1 */
    --accent-strong: #FF6B70;  /* the "Vn" of the logo */
    --danger-bg: #1F1416;
    --danger-border: #4A2A2E;
    --success: #3DD68C;
    --radius: 12px;
    --radius-sm: 10px;
    --header-h: 60px;
    --tabbar-h: 64px;
    --container: 1320px;
    --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #FFB3B5; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }

/* ---------- utilities kept for the existing scripts (profile.js, comments.js) */
.d-none { display: none !important; }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-danger { color: #FF8A8D; font-size: 13px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mb-3 { margin-bottom: 12px; }

/* ---------- layout */
.vp-container, .container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.vp-main { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); min-height: 60vh; }
.vp-section { padding-top: 20px; }
.vp-section + .vp-section { padding-top: 32px; }
.vp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vp-section-head h1, .vp-section-head h2 { font-size: 19px; }
.vp-section-head a { font-size: 14px; font-weight: 500; white-space: nowrap; }
.vp-page-title { font-size: 22px; margin-bottom: 4px; }
.vp-page-sub { color: var(--muted); font-size: 14px; }

@media (min-width: 1024px) {
    .vp-container, .container { padding: 0 24px; }
    .vp-main { padding-bottom: 56px; }
    .vp-section-head h1, .vp-section-head h2 { font-size: 22px; }
    .vp-page-title { font-size: 28px; }
}

/* ---------- header */
.vp-header { position: sticky; top: 0; z-index: 40; background: rgba(15, 15, 18, 0.96); border-bottom: 1px solid #22222A; backdrop-filter: blur(8px); }
.vp-header__bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.vp-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); flex: none; }
.vp-brand img { height: 22px; width: auto; }
.vp-badge18 { font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text-2); }
.vp-icon-btn {
    width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text);
}
.vp-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.vp-header__spacer { flex: 1; }
.vp-nav { display: none; gap: 4px; }
.vp-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.vp-nav a:hover, .vp-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.vp-header__search { padding: 4px 0 12px; }
.vp-header__actions { display: flex; align-items: center; gap: 8px; }
.vp-header__auth { display: none; gap: 8px; }

@media (min-width: 1024px) {
    .vp-header__bar { min-height: 72px; gap: 20px; }
    .vp-brand img { height: 26px; }
    .vp-nav { display: flex; }
    .vp-header__menu-btn { display: none; }
    .vp-header__search { padding: 0; flex: 1 1 320px; max-width: 560px; }
    .vp-header__search-row { display: none; }
    .vp-header__auth { display: flex; }
}
@media (max-width: 1023.98px) {
    .vp-header__search--inline { display: none; }
}

/* search with suggestions (app.js: #keyword, .tt-header-search-suggestion, .tt-header__search-wrapper) */
.vp-search { position: relative; }
.vp-search__box {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.vp-search__box:focus-within { border-color: var(--border-2); }
.vp-search__box svg { color: var(--muted); flex: none; }
.vp-search__box input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; }
.vp-search__box input::placeholder { color: var(--muted); }
.vp-search__box button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--text); font-size: 14px; font-weight: 600; }
.tt-header-search-suggestion {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
    background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 6px;
    max-height: 60vh; overflow-y: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.tt-header-search-suggestion a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.tt-header-search-suggestion a:hover { background: var(--surface-3); }

/* account menu (native <details>) */
.vp-menu { position: relative; }
.vp-menu > summary { list-style: none; }
.vp-menu > summary::-webkit-details-marker { display: none; }
.vp-menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.vp-menu__user { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.vp-menu__user img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.vp-menu__user span { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-menu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.vp-menu__panel a:hover { background: var(--surface-3); }
.vp-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }

/* ---------- buttons */
.vp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--accent); color: #FFFFFF;
    font-weight: 600; font-size: 15px; text-align: center;
}
.vp-btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.vp-btn--ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.vp-btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.vp-btn--block { width: 100%; }
.vp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* ---------- chips */
.vp-chips { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vp-chips::-webkit-scrollbar { display: none; }
.vp-chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.vp-chip {
    flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
    background: var(--surface-2); color: #E4E4EA; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.vp-chip:hover { background: var(--surface-3); color: var(--text); }
.vp-chip.is-active { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.vp-chip--sm { height: 32px; padding: 0 12px; font-size: 13px; background: var(--surface-3); color: var(--text); font-weight: 600; }
.vp-hashtags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }

/* ---------- video grid and cards */
.vp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 640px) { .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vp-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 16px; } }

.vp-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text); }
.vp-card:hover { color: var(--text); }
.vp-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.vp-card:hover .vp-thumb img { transform: scale(1.03); }
.vp-thumb__dur {
    position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 600; line-height: 1;
    padding: 4px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.78); color: #FFFFFF;
}
.vp-card__title {
    font-size: 13px; font-weight: 500; line-height: 1.38;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vp-card__meta { font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) {
    .vp-card { gap: 8px; }
    .vp-card__title { font-size: 15px; line-height: 1.4; }
    .vp-card__meta { font-size: 13px; }
    .vp-thumb { border-radius: var(--radius); }
    .vp-thumb__dur { right: 8px; bottom: 8px; font-size: 12px; }
}

.vp-list { display: flex; flex-direction: column; gap: 14px; }
.vp-row-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; color: var(--text); }
.vp-row-card:hover { color: var(--text); }
.vp-row-card .vp-card__title { font-size: 14px; }

.vp-empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* ---------- genre and tag tiles */
.vp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .vp-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }
.vp-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 14px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.vp-tile:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.vp-tile__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.vp-tile__count { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.vp-tile svg { color: var(--muted); flex: none; }

/* ---------- toolbar (sort, filter) */
.vp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vp-toolbar form { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-toolbar .vp-filter { flex: 1 1 320px; }
.vp-select, .vp-input {
    height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 15px; min-width: 0;
}
.vp-select { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.vp-input { flex: 1 1 200px; }
.vp-select:focus, .vp-input:focus { outline: none; border-color: var(--border-2); }

/* ---------- pager */
.vp-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.vp-pager a {
    min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600;
}
.vp-pager a:hover { background: var(--surface-2); color: var(--text); }
.vp-pager a.active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ---------- watch page */
.vp-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; }
.vp-player { position: relative; aspect-ratio: 16 / 9; background: #000000; margin: 0 -16px; }
.vp-player > div, .vp-player .jwplayer { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.vp-watch__body { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.vp-watch__title { font-size: 19px; line-height: 1.35; }
.vp-watch__meta { font-size: 13px; color: var(--muted); }
.vp-watch__descr { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.vp-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vp-action {
    min-height: 56px; padding: 6px 4px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
}
.vp-action:hover { background: var(--surface-2); color: var(--text); }
.vp-action.active { border-color: var(--accent); color: var(--accent-text); }
.vp-action .count { color: var(--muted); font-size: 11px; }
.vp-action--report { border-color: var(--danger-border); background: var(--danger-bg); color: var(--accent-text); }
.vp-action--report:hover { color: #FFB3B5; background: #2A181B; }
.vp-action [data-icon-on] { display: none; }
.vp-action.active [data-icon-on] { display: block; }
.vp-action.active [data-icon-off] { display: none; }
.vp-aside h2 { font-size: 17px; margin-bottom: 12px; }

@media (min-width: 1024px) {
    .vp-watch { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-top: 24px; }
    .vp-player { margin: 0; border-radius: var(--radius); overflow: hidden; }
    .vp-watch__title { font-size: 24px; }
    .vp-actions { display: flex; flex-wrap: wrap; }
    .vp-action { flex-direction: row; min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
    .vp-action .count { font-size: 13px; }
    .vp-row-card { grid-template-columns: 168px minmax(0, 1fr); }
}

/* comments (comments.js: .tt-video-details__*, .load-more-comments, .comments-loading) */
.vp-comments { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.vp-comments .heading { margin-bottom: 12px; }
.vp-comments .heading h2, .vp-comments .heading h5 { font-size: 17px; }
.tt-video-details__comment-form { display: flex; flex-direction: column; gap: 8px; }
.tt-video-details__comment-form textarea {
    width: 100%; min-height: 88px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); resize: vertical;
}
.tt-video-details__comment-form textarea:focus { outline: none; border-color: var(--border-2); }
.tt-video-details__comment-form .btns { display: flex; justify-content: flex-end; }
.tt-video-details__comment-form button { min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #FFFFFF; font-weight: 600; }
.tt-video-details__comments { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.tt-video-details__comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.tt-video-details__comment-avatar img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.tt-video-details__comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.tt-video-details__comment-author { color: var(--text); font-weight: 600; font-size: 14px; }
.tt-video-details__comment-date { color: var(--muted); font-size: 12px; }
.tt-video-details__comment-text p { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.load-more-comments button, .comments-loading { margin-top: 8px; }
.load-more-comments button { min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: transparent; color: var(--text); font-weight: 600; }
.comments-loading { color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- forms and cards */
.vp-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; }
.vp-auth { max-width: 440px; margin: 24px auto 0; }
.vp-auth h1 { font-size: 24px; }
.vp-auth__sub { color: var(--muted); margin-top: 4px; margin-bottom: 20px; font-size: 14px; }
.vp-form { display: flex; flex-direction: column; gap: 14px; }
.vp-field { display: flex; flex-direction: column; gap: 6px; }
.vp-field label, .vp-label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.vp-field input, .vp-field select, .vp-field textarea,
.vp-form input[type="text"], .vp-form input[type="email"], .vp-form input[type="password"], .vp-form input[type="url"], .vp-form select, .vp-form textarea {
    width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 15px;
}
.vp-form textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.vp-form input:focus, .vp-form select:focus, .vp-form textarea:focus { outline: none; border-color: var(--border-2); }
.vp-form input[readonly] { color: var(--muted); }
.vp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.vp-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.vp-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.vp-form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .vp-form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vp-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.vp-divider::before, .vp-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.vp-google { display: flex; justify-content: center; }
.vp-google button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: transparent; color: var(--text); font-weight: 600; }
.vp-google img { width: 20px; height: 20px; }
.vp-auth__foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); }
.vp-alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; }
.vp-alert--success { background: #12241B; border-color: #1E4D35; color: #9BE7C0; }
.vp-alert--error { background: var(--danger-bg); border-color: var(--danger-border); color: #FFB3B5; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; color: #FFB3B5; font-size: 14px; }

/* account lists (favorites.js / watch-histories.js: .tt-channel-content-table tbody tr) */
.tt-channel-content-table { width: 100%; border-collapse: collapse; }
.tt-channel-content-table thead { display: none; }
.tt-channel-content-table tr { border-bottom: 1px solid var(--border); }
.tt-channel-content-table td { padding: 12px 0; vertical-align: middle; }
.vp-acc-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.vp-acc-row .vp-card__title { font-size: 14px; }
.vp-acc-row .vp-icon-btn { border: 1px solid var(--border); }

/* profile */
.vp-profile-dp { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.uploaded-dp-preview { position: relative; width: 112px; height: 112px; }
.uploaded-dp-preview img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; border: 2px solid var(--border-2); }
.uploaded-dp-preview label { position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.loading-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; }
.loading-spinner { width: 56px; }
.form-text { color: var(--muted); font-size: 13px; }

/* ---------- policy and prose pages */
.tt-policy, .vp-prose { max-width: 760px; margin: 24px auto 0; }
.tt-policy__eyebrow { color: var(--accent-text); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.tt-policy__title, .vp-prose h1 { font-size: 26px; margin-bottom: 12px; }
.tt-policy__lead { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.tt-policy__header { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.tt-policy__section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.tt-policy__section h2, .vp-prose h2 { font-size: 19px; margin-bottom: 12px; }
.tt-policy__rule { padding: 14px 16px; margin-top: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tt-policy__rule h3 { font-size: 16px; margin-bottom: 6px; }
.tt-policy p, .tt-policy li, .vp-prose p, .vp-prose li { color: var(--text-2); line-height: 1.65; }
.tt-policy p + p, .vp-prose p + p { margin-top: 10px; }
.tt-policy ul, .tt-policy ol, .vp-prose ul { padding-left: 20px; margin: 10px 0 0; }
.tt-policy__footer { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tt-policy__button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--accent); color: #FFFFFF; font-weight: 600; }
.tt-policy__button:hover { background: var(--accent-hover); color: #FFFFFF; }
.tt-policy__link { font-weight: 500; }
@media (min-width: 1024px) { .tt-policy__title, .vp-prose h1 { font-size: 32px; } }

/* contact */
.vp-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 980px; margin: 24px auto 0; }
@media (min-width: 900px) { .vp-contact { grid-template-columns: 300px minmax(0, 1fr); } }
.vp-contact__info { display: flex; flex-direction: column; gap: 12px; }
.vp-contact__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.vp-contact__item svg { color: var(--accent-text); flex: none; margin-top: 2px; }
.vp-contact__item h2 { font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.vp-contact__item a { overflow-wrap: anywhere; font-size: 14px; }

/* error page */
.vp-error { text-align: center; padding: 64px 16px; }
.vp-error__code { font-size: 64px; font-weight: 700; color: var(--accent-strong); line-height: 1; }
.vp-error p { color: var(--text-2); margin: 12px 0 20px; }

/* ---------- footer */
.vp-footer { border-top: 1px solid #22222A; margin-top: 40px; }
.vp-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 28px; padding-bottom: 28px; }
.vp-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.vp-footer__brand img { height: 22px; width: auto; }
.vp-footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.vp-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.vp-footer__links a { color: var(--text-2); font-size: 14px; }
.vp-footer__links a:hover { color: var(--text); }
.vp-footer__copy { color: var(--muted); font-size: 13px; padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .vp-footer__copy { padding-bottom: 28px; } }

/* ---------- bottom tab bar (phones and tablets) */
.vp-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #141418; border-top: 1px solid #22222A;
}
.vp-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.vp-tabbar a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
@media (min-width: 1024px) { .vp-tabbar { display: none; } }
/* the sticky catfish banner sits above the tab bar */
@media (max-width: 1023.98px) { .tt-banner-catfish { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)) !important; } }

/* ---------- drawer */
.vp-drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.vp-drawer.is-open { display: block; }
.vp-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); border: 0; width: 100%; }
.vp-drawer__panel {
    position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); overflow-y: auto;
    background: var(--surface); border-right: 1px solid var(--border); padding: 12px 12px 32px;
}
.vp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.vp-drawer__head img { height: 22px; width: auto; }
.vp-drawer__group { padding: 12px 4px; border-top: 1px solid var(--border); }
.vp-drawer__group h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 8px 8px; }
.vp-drawer__group a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--text); font-size: 15px; }
.vp-drawer__group a:hover { background: var(--surface-3); }
body.vp-locked { overflow: hidden; }

/* ---------- 18+ gate (age-gate.js: #age-gate, form) */
body.age-gate-open { overflow: hidden; }
.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 12, 0.94); }
.age-gate__card {
    width: 100%; max-width: 440px; padding: 28px 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 14px;
}
.age-gate__brand { display: flex; align-items: center; gap: 10px; }
.age-gate__brand img { height: 26px; width: auto; }
.age-gate__title { font-size: 22px; line-height: 1.3; }
.age-gate__text { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.age-gate__confirm { min-height: 52px; border-radius: var(--radius); border: 0; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 700; }
.age-gate__confirm:hover { background: var(--accent-hover); }
.age-gate__leave { min-height: 52px; border-radius: var(--radius); border: 1px solid var(--border-2); color: var(--text); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.age-gate__leave:hover { color: var(--text); background: var(--surface-2); }
.age-gate__note, .age-gate__report { color: var(--muted); font-size: 13px; line-height: 1.55; }
