/* ==========================================================================
   Ref Clips — application theme
   Layered on top of the legacy inline styles in base.html (loaded after them,
   so equal-specificity rules here win). Components are prefixed rc- .
   ========================================================================== */

:root {
    --rc-navy: #0c2b45;
    --rc-navy-700: #16405f;
    --rc-ink: #132132;
    --rc-body: #37475a;
    --rc-muted: #6b7c8f;
    --rc-faint: #90a0b2;
    --rc-line: #dfe5ec;
    --rc-line-strong: #c7d2de;
    --rc-surface: #ffffff;
    --rc-bg: #f4f6f9;
    --rc-accent: #1c5d99;
    --rc-accent-ink: #12456f;
    --rc-accent-soft: #eef4fa;
    --rc-good: #1c6b45;
    --rc-good-soft: #eaf5ef;
    --rc-bad: #a4262c;
    --rc-bad-soft: #fbecec;
    --rc-radius: 10px;
    --rc-radius-sm: 6px;
    --rc-shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .05);
    --rc-shadow-hover: 0 4px 16px rgba(16, 32, 48, .10);
    --rc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --rc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------- base ---- */

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

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 30px 26px 0;
}

h1 {
    text-align: left;
    font-size: 23px;
    font-weight: 640;
    letter-spacing: -.01em;
    color: var(--rc-ink);
    margin: 0 0 6px;
}

h2 {
    font-size: 17px;
    font-weight: 620;
    color: var(--rc-ink);
    letter-spacing: -.01em;
}

a {
    color: var(--rc-accent);
}

/* ------------------------------------------------------------- top bar ---- */

.rc-topbar {
    background: var(--rc-surface);
    border-bottom: 1px solid var(--rc-line);
    position: sticky;
    top: 0;
    z-index: 900;
}

.rc-topbar-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 26px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rc-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: 0 0 auto;
    padding: 8px 0;
}

.rc-brand img {
    height: 36px;
    width: 36px;
    display: block;
    border-radius: 50%;
}

.rc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.rc-brand-name {
    font-size: 16px;
    font-weight: 650;
    color: var(--rc-navy);
    letter-spacing: -.01em;
}

.rc-brand-tag {
    font-size: 11px;
    font-weight: 550;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rc-faint);
}

.rc-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-wrap: wrap;
}

.rc-nav a {
    position: relative;
    display: inline-block;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--rc-body);
    text-decoration: none;
    border-radius: var(--rc-radius-sm);
    background: none;
    border: none;
    margin: 0;
    transition: color .12s ease, background .12s ease;
}

.rc-nav a:hover {
    color: var(--rc-navy);
    background: #f2f5f9;
}

.rc-nav a.is-active {
    color: var(--rc-navy);
    font-weight: 640;
}

.rc-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--rc-accent);
    border-radius: 2px;
}

.rc-nav a.rc-nav-quiet {
    color: var(--rc-muted);
    font-weight: 500;
}

.rc-nav a.rc-nav-logout {
    margin-left: 6px;
    border: 1px solid var(--rc-line-strong);
    color: var(--rc-body);
    font-weight: 600;
}

.rc-nav a.rc-nav-cta {
    background: var(--rc-navy);
    color: #fff;
    font-weight: 620;
}

.rc-nav a.rc-nav-cta:hover {
    background: var(--rc-navy-700);
    color: #fff;
}

.rc-nav a.rc-nav-cta.is-active::after {
    display: none;
}

.rc-nav a.rc-nav-logout:hover {
    border-color: var(--rc-navy);
    color: var(--rc-navy);
    background: var(--rc-surface);
}

.rc-nav-sep {
    width: 1px;
    height: 20px;
    background: var(--rc-line);
    margin: 0 8px;
}

.rc-nav-note {
    font-size: 12.5px;
    color: var(--rc-muted);
    padding: 8px 4px;
}

/* --------------------------------------------------------- page header ---- */

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
}

/* the brand already appears in the top bar — no second logo per page */
.page-header .page-logo,
.page-header .hero-logo {
    display: none;
}

.page-header h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 640;
    color: var(--rc-ink);
}

.rc-page {
    margin: 0 0 22px;
}

.rc-page-title {
    font-size: 23px;
    font-weight: 640;
    letter-spacing: -.01em;
    color: var(--rc-ink);
    margin: 0;
}

.rc-page-sub {
    font-size: 13.5px;
    color: var(--rc-muted);
    margin: 5px 0 0;
}

/* ------------------------------------------------------------- layout ---- */

.rc-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

@media (max-width: 1000px) {
    .rc-layout {
        grid-template-columns: 1fr;
    }
}

.rc-sidebar {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 20px 18px 6px;
    position: sticky;
    top: 86px;
}

@media (max-width: 1000px) {
    .rc-sidebar {
        position: static;
    }
}

.rc-sidebar-title {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin: 0 0 14px;
}

.rc-sidebar-section {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--rc-line);
}

.rc-sidebar-section:last-child {
    border-bottom: none;
}

/* legacy filter markup, re-laid-out as sidebar sections */
.rc-sidebar .sort-controls,
.rc-sidebar .second-row {
    display: block;
    margin: 0;
}

.rc-sidebar .filter-group,
.rc-sidebar .search-group {
    margin: 0 0 15px;
}

.rc-sidebar .filter-group > label,
.rc-sidebar .search-group > label {
    display: block;
    font-size: 12px;
    font-weight: 620;
    color: var(--rc-body);
    margin: 0 0 6px;
}

.rc-sidebar .filter-group > label input[type="checkbox"] {
    margin-right: 6px;
}

.rc-sidebar .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 2px;
}

.rc-sidebar .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rc-body);
    cursor: pointer;
}

.rc-sidebar .share-btn,
.rc-sidebar button {
    width: 100%;
    margin: 0 0 12px;
}

/* --------------------------------------------------------------- forms ---- */

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font: inherit;
    font-size: 13.5px;
    color: var(--rc-ink);
    background: var(--rc-surface);
    border: 1px solid var(--rc-line-strong);
    border-radius: var(--rc-radius-sm);
    padding: 8px 10px;
    box-sizing: border-box;
    transition: border-color .12s ease, box-shadow .12s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--rc-accent);
    box-shadow: 0 0 0 3px rgba(28, 93, 153, .13);
}

.rc-sidebar select,
.rc-sidebar input[type="text"] {
    width: 100%;
}

/* -------------------------------------------------------------- buttons ---- */

input[type="submit"],
button,
.rc-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 620;
    border-radius: var(--rc-radius-sm);
    border: 1px solid transparent;
    padding: 9px 15px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

input[type="submit"],
.rc-btn-primary {
    background: var(--rc-navy);
    color: #fff;
}

input[type="submit"]:hover,
.rc-btn-primary:hover {
    background: var(--rc-navy-700);
}

.rc-btn-ghost,
input.clear-btn {
    background: var(--rc-surface);
    color: var(--rc-body);
    border-color: var(--rc-line-strong);
}

.rc-btn-ghost:hover,
input.clear-btn:hover {
    border-color: var(--rc-navy);
    color: var(--rc-navy);
}

.rc-btn-sm {
    font-size: 12.5px;
    padding: 6px 11px;
}

.rc-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------- toolbar ---- */

.rc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.results-counter {
    font-size: 13.5px;
    color: var(--rc-muted);
    padding: 0;
    margin: 0;
}

.results-counter strong {
    color: var(--rc-ink);
    font-weight: 650;
}

.rc-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rc-sort label {
    font-size: 12px;
    font-weight: 620;
    color: var(--rc-body);
    white-space: nowrap;
}

.rc-sort select {
    min-width: 168px;
}

/* --------------------------------------------------------------- cards ---- */

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}

.clip-card {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 18px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.clip-card:hover {
    transform: none;
    box-shadow: var(--rc-shadow-hover);
    border-color: var(--rc-line-strong);
}

.clip-title-row {
    display: block;
}

.clip-title {
    font-size: 15px;
    line-height: 1.4;
}

.clip-title a {
    font-size: 15px;
    font-weight: 620;
    color: var(--rc-ink);
    text-decoration: none;
}

.clip-title a:hover {
    color: var(--rc-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--rc-muted);
}

.rc-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--rc-body);
    white-space: nowrap;
}

.video-indicator {
    display: inline-block;
    margin-left: 7px;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rc-accent);
}

.rc-pill-good {
    background: var(--rc-good-soft);
    color: var(--rc-good);
}

.rc-pill-bad {
    background: var(--rc-bad-soft);
    color: var(--rc-bad);
}

.rc-pill-quiet {
    background: none;
    color: var(--rc-faint);
    padding-left: 2px;
}

.rc-byline {
    font-size: 12px;
    color: var(--rc-faint);
}

.play-number {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin: 0 0 6px;
}

.notes-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rc-line);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rc-body);
}

.notes-label {
    display: block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin-bottom: 6px;
}

.rc-card-actions {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-card-actions:not(:first-child) {
    border-top: 1px solid var(--rc-line);
}

.rc-textbtn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 620;
    color: var(--rc-accent);
    cursor: pointer;
}

.rc-textbtn:hover {
    color: var(--rc-accent-ink);
    text-decoration: underline;
}

.rc-tag-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 650;
    color: var(--rc-body);
    background: #eef1f5;
    border-radius: 999px;
}

.rc-categorize {
    align-self: flex-start;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 620;
    color: var(--rc-muted);
    text-decoration: none;
    border: 1px solid var(--rc-line);
    border-radius: 999px;
    padding: 3px 10px;
}

.rc-categorize:hover {
    color: var(--rc-navy);
    border-color: var(--rc-line-strong);
}

/* ---------------------------------------------------------- pagination ---- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 30px 0 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rc-body);
    text-decoration: none;
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius-sm);
}

.pagination a:hover {
    border-color: var(--rc-navy);
    color: var(--rc-navy);
}

.pagination .current,
.pagination .current-page,
.pagination span.current {
    background: var(--rc-navy);
    border-color: var(--rc-navy);
    color: #fff;
}

.pagination .disabled {
    color: var(--rc-faint);
    background: #f2f5f8;
    border-color: var(--rc-line);
}

/* -------------------------------------------------------------- notice ---- */

.rc-notice {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: var(--rc-accent-soft);
    border: 1px solid #d5e4f2;
    border-left: 3px solid var(--rc-accent);
    border-radius: var(--rc-radius-sm);
    padding: 13px 16px;
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--rc-body);
}

.rc-notice strong {
    color: var(--rc-ink);
    font-weight: 650;
}

.rc-notice p {
    margin: 3px 0 0;
    color: var(--rc-muted);
    font-size: 13px;
}

.rc-empty {
    background: var(--rc-surface);
    border: 1px dashed var(--rc-line-strong);
    border-radius: var(--rc-radius);
    padding: 46px 28px;
    text-align: center;
    grid-column: 1 / -1;
}

.rc-empty h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 640;
    color: var(--rc-ink);
}

.rc-empty p {
    margin: 0;
    color: var(--rc-muted);
    font-size: 13.5px;
}

/* --------------------------------------------------------------- modal ---- */

.video-modal {
    background: rgba(9, 17, 26, .72);
}

.video-modal-content {
    background: #0d1723;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    padding: 18px;
}

.video-modal-title {
    color: #e8eef5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
}

.video-modal-close {
    color: #9fb0c2;
    font-size: 26px;
    line-height: 1;
    background: none;
    border: none;
    padding: 0 4px;
}

.video-modal-close:hover {
    color: #fff;
}

.rc-dialog {
    background: var(--rc-surface);
    border-radius: var(--rc-radius);
    padding: 22px;
    box-shadow: 0 24px 60px rgba(16, 32, 48, .28);
}

.rc-dialog h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 640;
    color: var(--rc-ink);
}

.rc-dialog p {
    color: var(--rc-muted);
    font-size: 13.5px;
}

.rc-field-label {
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin-bottom: 5px;
}

.rc-field-value {
    background: #f6f8fa;
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius-sm);
    padding: 9px 11px;
    font-size: 13.5px;
    color: var(--rc-ink);
    word-break: break-all;
}

.rc-field-value.is-mono {
    font-family: var(--rc-mono);
    font-size: 13px;
}

/* ------------------------------------------------------------ auth page ---- */

body.rc-auth {
    background: var(--rc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.rc-auth-shell {
    width: 100%;
    max-width: 408px;
}

.rc-auth-card {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 32, 48, .08);
    padding: 34px 32px 28px;
}

.rc-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.rc-auth-brand img {
    height: 46px;
    width: 46px;
    border-radius: 50%;
}

.rc-auth-title {
    font-size: 19px;
    font-weight: 650;
    color: var(--rc-ink);
    margin: 0;
    letter-spacing: -.01em;
}

.rc-auth-sub {
    font-size: 13px;
    color: var(--rc-muted);
    margin: 3px 0 0;
}

.rc-auth-card .form-group {
    margin-bottom: 16px;
}

.rc-auth-card label {
    display: block;
    font-size: 12px;
    font-weight: 620;
    color: var(--rc-body);
    margin-bottom: 6px;
}

.rc-auth-card input[type="email"],
.rc-auth-card input[type="password"],
.rc-auth-card input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
}

.rc-auth-card .login-btn {
    width: 100%;
    margin-top: 6px;
    background: var(--rc-navy);
    color: #fff;
    border: none;
    border-radius: var(--rc-radius-sm);
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 630;
    cursor: pointer;
}

.rc-auth-card .login-btn:hover {
    background: var(--rc-navy-700);
}

.rc-auth-card .forgot-password {
    text-align: right;
    margin-top: 7px;
}

.rc-auth-card .forgot-password a {
    font-size: 12.5px;
    color: var(--rc-muted);
    text-decoration: none;
}

.rc-auth-card .forgot-password a:hover {
    color: var(--rc-accent);
    text-decoration: underline;
}

.rc-auth-foot {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--rc-line);
    font-size: 13px;
    color: var(--rc-muted);
}

.rc-auth-foot a {
    color: var(--rc-accent);
    font-weight: 600;
    text-decoration: none;
}

.rc-auth-foot a:hover {
    text-decoration: underline;
}

.rc-auth-legal {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--rc-faint);
}

.rc-auth-legal a {
    color: var(--rc-muted);
    text-decoration: none;
}

.rc-auth-legal a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: var(--rc-radius-sm);
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
    max-width: 1260px;
    margin: 44px auto 0;
    padding: 20px 26px 34px;
    border-top: 1px solid var(--rc-line);
    background: none;
    text-align: left;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--rc-faint);
}

.footer-links a {
    color: var(--rc-muted);
    text-decoration: none;
    font-weight: 550;
}

.footer-links a:hover {
    color: var(--rc-navy);
    text-decoration: underline;
}

/* ------------------------------------------------------------ utilities ---- */

.rc-muted {
    color: var(--rc-muted);
}

.rc-hairline {
    border: none;
    border-top: 1px solid var(--rc-line);
    margin: 22px 0;
}

.rc-hidden {
    display: none !important;
}

/* ------------------------------------------------------------ buttons ---- */

.rc-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.rc-btn-lg {
    padding: 12px 20px;
    font-size: 13.5px;
}

.rc-btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.rc-btn-quiet {
    background: none;
    border-color: transparent;
    color: var(--rc-accent);
    font-weight: 600;
}

.rc-btn-quiet:hover {
    color: var(--rc-accent-ink);
    text-decoration: underline;
}

.rc-btn-inverse {
    background: #fff;
    color: var(--rc-navy);
    border-color: #fff;
}

.rc-btn-inverse:hover {
    background: #eef2f7;
    color: var(--rc-navy);
}

/* ------------------------------------------------------------ landing ---- */

.rc-hero {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: 14px;
    box-shadow: var(--rc-shadow);
    padding: 44px 40px;
    margin: 0 0 34px;
}

.rc-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 44px;
    align-items: center;
    max-width: 1180px;
}

.rc-hero-lockup {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 0 24px;
}

.rc-hero-preview {
    background: #f8fafc;
    border: 1px solid var(--rc-line);
    border-radius: 12px;
    box-shadow: var(--rc-shadow);
    overflow: hidden;
}

.rc-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--rc-surface);
    border-bottom: 1px solid var(--rc-line);
}

.rc-preview-brand {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--rc-ink);
}

.rc-preview-count {
    font-size: 11.5px;
    color: var(--rc-faint);
}

.rc-preview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.rc-preview-clip {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: 10px;
    padding: 14px;
}

.rc-preview-title {
    font-size: 13px;
    font-weight: 620;
    line-height: 1.4;
    color: var(--rc-ink);
    margin: 10px 0 6px;
}

.rc-preview-note {
    font-size: 12px;
    line-height: 1.55;
    color: var(--rc-muted);
    margin: 0 0 10px;
}

.rc-preview-foot {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    color: var(--rc-faint);
}

.rc-preview-sep {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: var(--rc-line);
}

.rc-preview-sport {
    display: block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin-bottom: 9px;
}

.rc-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 18px;
}

.rc-sport-sample {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 20px;
}

.rc-sport-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--rc-line);
}

.rc-sport-head h3 {
    font-size: 15px;
    font-weight: 650;
    color: var(--rc-ink);
    margin: 0;
}

.rc-sport-count {
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rc-accent-ink);
    background: var(--rc-accent-soft);
    border-radius: 999px;
    padding: 3px 9px;
}

.rc-sample-clip {
    padding: 14px 0;
    border-bottom: 1px dashed var(--rc-line);
}

.rc-sample-clip:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.rc-sample-title {
    font-size: 13px;
    font-weight: 620;
    line-height: 1.45;
    color: var(--rc-ink);
    margin: 10px 0 5px;
}

.rc-sample-meta {
    font-size: 11.5px;
    color: var(--rc-faint);
    margin: 0;
}

.rc-sample-foot {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--rc-faint);
}

/* --- iOS / WebKit hardening --- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rc-flip-inner {
    -webkit-transform-style: preserve-3d;
}

.rc-flip {
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .rc-flip-face {
        /* keep both faces crisp on iOS where 3D transforms can blur text */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* --- flip cards: sport on the front, the sample play on the back --- */
.rc-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.rc-flip {
    height: 212px;
    perspective: 1200px;
    outline: none;
}

.rc-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.4, .15, .2, 1);
}

.rc-flip:hover .rc-flip-inner,
.rc-flip:focus .rc-flip-inner,
.rc-flip:focus-visible .rc-flip-inner,
.rc-flip.is-flipped .rc-flip-inner {
    transform: rotateY(180deg);
}

.rc-flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.rc-flip:hover .rc-flip-face {
    box-shadow: var(--rc-shadow-hover);
}

.rc-flip-front {
    justify-content: space-between;
}

.rc-flip-badge {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rc-accent-ink);
    background: var(--rc-accent-soft);
    border-radius: 999px;
    padding: 3px 9px;
}

.rc-flip-sport {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: var(--rc-ink);
}

.rc-flip-hint {
    font-size: 11.5px;
    color: var(--rc-faint);
}

.rc-flip-back {
    transform: rotateY(180deg);
    justify-content: center;
    gap: 11px;
}

.rc-flip-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rc-flip-title {
    font-size: 13px;
    font-weight: 620;
    line-height: 1.45;
    color: var(--rc-ink);
    margin: 0;
}

.rc-flip-meta {
    font-size: 11.5px;
    color: var(--rc-faint);
    margin: 0;
}

@media (max-width: 620px) {
    .rc-flip {
        height: 196px;
    }
    .rc-flip-sport {
        font-size: 19px;
    }
}

.rc-eyebrow {
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin: 0 0 10px;
}

.rc-hero-title {
    font-size: 34px;
    line-height: 1.18;
    font-weight: 660;
    letter-spacing: -.02em;
    color: var(--rc-navy);
    margin: 0 0 14px;
    max-width: 720px;
}

.rc-hero-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--rc-body);
    margin: 0 0 24px;
    max-width: 660px;
}

.rc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 900px) {
    .rc-hero {
        padding: 30px 22px;
    }
    .rc-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .rc-hero-lockup {
        width: 240px;
    }
    .rc-hero-title {
        font-size: 26px;
    }
}

.rc-section {
    padding: 30px 0 6px;
    border-top: 1px solid var(--rc-line);
    margin-top: 26px;
}

.rc-section-title {
    font-size: 21px;
    font-weight: 640;
    letter-spacing: -.01em;
    color: var(--rc-ink);
    margin: 0 0 10px;
}

.rc-section-lead {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--rc-body);
    max-width: 780px;
    margin: 0 0 22px;
}

.rc-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.rc-value {
    border-left: 2px solid var(--rc-line-strong);
    padding: 4px 0 4px 16px;
}

.rc-value h3 {
    font-size: 15px;
    font-weight: 640;
    color: var(--rc-ink);
    margin: 0 0 6px;
}

.rc-value p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--rc-muted);
    margin: 0;
}

.rc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.rc-card-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.rc-feature {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    padding: 20px;
}

.rc-feature h3 {
    font-size: 15px;
    font-weight: 640;
    color: var(--rc-ink);
    margin: 0 0 8px;
}

.rc-feature p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--rc-muted);
    margin: 0;
}

.rc-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--rc-accent-soft);
    color: var(--rc-accent-ink);
    margin-bottom: 14px;
}

.rc-feature-icon svg {
    width: 19px;
    height: 19px;
}

.rc-feature-plain {
    border-left: 2px solid var(--rc-line-strong);
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 2px 0 2px 16px;
    background: none;
}

.rc-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: start;
}

.rc-plan {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.rc-plan-featured {
    border-color: var(--rc-navy);
    box-shadow: var(--rc-shadow-hover);
}

.rc-plan h3 {
    font-size: 15px;
    font-weight: 650;
    color: var(--rc-ink);
    margin: 0 0 12px;
    text-transform: none;
}

.rc-plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--rc-navy);
    background: #eef2f7;
    border-radius: 999px;
    padding: 3px 9px;
}

.rc-plan-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.rc-price {
    font-size: 30px;
    font-weight: 660;
    letter-spacing: -.02em;
    color: var(--rc-navy);
}

.rc-price-text {
    font-size: 22px;
    font-weight: 640;
}

.rc-price-unit {
    font-size: 13px;
    color: var(--rc-muted);
}

.rc-plan-alt {
    font-size: 12.5px;
    color: var(--rc-faint);
    margin: 4px 0 16px;
}

.rc-plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.rc-plan-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--rc-body);
}

.rc-plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rc-line-strong);
}

.rc-founder {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

@media (max-width: 820px) {
    .rc-founder {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.rc-founder-text p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--rc-body);
    margin: 0 0 14px;
    max-width: 700px;
}

.rc-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-highlight {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius-sm);
    padding: 14px 16px;
}

.rc-highlight-label {
    display: block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--rc-faint);
    margin-bottom: 4px;
}

.rc-highlight p {
    margin: 0;
    font-size: 13.5px;
    color: var(--rc-ink);
    font-weight: 550;
}

.rc-cta {
    margin-top: 34px;
    background: var(--rc-navy);
    border-radius: 14px;
    padding: 40px 40px;
    text-align: center;
}

.rc-cta h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.rc-cta p {
    color: #b9c7d6;
    font-size: 14.5px;
    margin: 0 0 22px;
}

/* --------------------------------------------------- admin / org extras ---- */

.rc-role {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--rc-body);
}

.rc-role-admin {
    background: var(--rc-accent-soft);
    color: var(--rc-accent-ink);
}

.rc-invite-role {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f6f8fa;
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius-sm);
    font-size: 13.5px;
    color: var(--rc-body);
    text-align: left;
}

.rc-sport-tag {
    font-size: 12px;
    font-weight: 620;
    letter-spacing: .04em;
    color: var(--rc-accent-ink);
    background: var(--rc-accent-soft);
    border-radius: 999px;
    padding: 3px 10px;
    display: inline-block;
    margin: 0 0 14px;
}

.rc-sport-tag-empty {
    background: #f2f5f8;
    color: var(--rc-faint);
    font-weight: 550;
}

.copy-btn {
    white-space: nowrap;
}

/* admin modals that toggle display:block inline still centre properly */
.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------------------------- invite / promo ---- */

.rc-invite-panel {
    background: var(--rc-navy);
    border-radius: 14px;
    padding: 36px 34px;
    color: #fff;
    margin-bottom: 24px;
}

.rc-invite-panel h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.rc-invite-panel-lead {
    color: #b9c7d6;
    font-size: 14.5px;
    margin: 0 0 26px;
}

.rc-invite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.rc-invite-feature {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--rc-radius-sm);
    padding: 16px;
}

.rc-invite-feature h4 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 640;
    color: #fff;
}

.rc-invite-feature p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #aebdcd;
}

.rc-card {
    background: var(--rc-surface);
    border: 1px solid var(--rc-line);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.rc-card-title {
    font-size: 16px;
    font-weight: 640;
    color: var(--rc-ink);
    margin: 0 0 16px;
}

.rc-tick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 620px;
    display: flex;
    flex-direction: column;
}

.rc-tick-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 13.5px;
    color: var(--rc-body);
    border-bottom: 1px solid var(--rc-line);
}

.rc-tick-list li:last-child {
    border-bottom: none;
}

.rc-tick-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 9px;
    height: 5px;
    border-left: 1.6px solid var(--rc-good);
    border-bottom: 1.6px solid var(--rc-good);
    transform: rotate(-45deg);
}

.rc-notice-warn {
    background: #fdf7ec;
    border-color: #f0e0c2;
    border-left-color: var(--rc-warm);
}

.rc-notice-warn strong {
    color: #7a4a08;
}
