/* =============================================================
   contests.css — LearnWithFidelis Contest System
   Dark theme, teal #00ffd5 accent
   ============================================================= */

/* ── Wrap ───────────────────────────────────────────────────── */
.ct-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ── Pill ───────────────────────────────────────────────────── */
.ct-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 255, 213, 0.10);
    border: 1px solid rgba(0, 255, 213, 0.20);
    color: #bffcf1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.ct-hero {
    padding: 32px 0 24px;
    text-align: center;
}
.ct-winners-hero {
    padding: 40px 0 20px;
    text-align: center;
}
.ct-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ct-hero-title {
    margin: 8px 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
}
.ct-hero-sub {
    margin: 0 auto;
    max-width: 600px;
    opacity: 0.82;
    line-height: 1.6;
    font-size: 15px;
}

/* ── Section ────────────────────────────────────────────────── */
.ct-section {
    margin: 28px 0;
}
.ct-section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

/* ── Accordion (intro video) ────────────────────────────────── */
.ct-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s;
    margin-bottom: 0;
}
.ct-accordion-toggle:hover {
    background: rgba(0,255,213,0.07);
}
.ct-accordion-chevron {
    font-size: 11px;
    color: #00ffd5;
    transition: transform 0.2s;
}
.ct-accordion-body {
    padding: 16px 0 0;
}

/* ── Video embed ────────────────────────────────────────────── */
.ct-video-wrap,
.ct-video-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d0d;
}
.ct-video,
.ct-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ── About grid ─────────────────────────────────────────────── */
.ct-about {
    padding: 8px 0;
}
.ct-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ct-about-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.ct-about-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.ct-about-card h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
}
.ct-about-card p {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.55;
    margin: 0;
}

/* ── Cards grid ─────────────────────────────────────────────── */
.ct-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.ct-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.18s;
}
.ct-card:hover {
    border-color: rgba(0,255,213,0.25);
    transform: translateY(-2px);
}
.ct-card--ended {
    opacity: 0.72;
}
.ct-card--ended:hover {
    transform: none;
}

/* Card image */
.ct-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #141414;
    overflow: hidden;
}
.ct-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ct-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255,255,255,0.15);
    background: linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
}
.ct-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.ct-badge-active  { background: #00ffd5; color: #0a0a0a; }
.ct-badge-ended   { background: rgba(255,255,255,0.12); color: #aaa; border: 1px solid rgba(255,255,255,0.1); }

/* Card body */
.ct-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ct-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.ct-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ct-stat-chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #ccc;
}
.ct-card-meta {
    font-size: 12px;
    color: #888;
}
.ct-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    text-decoration: none;
    white-space: nowrap;
}
.ct-btn:hover { opacity: 0.88; }
.ct-btn-primary   { background: #00ffd5; color: #0a0a0a; }
.ct-btn-secondary { background: rgba(0,255,213,0.12); color: #00ffd5; border: 1px solid rgba(0,255,213,0.22); }
.ct-btn-ghost     { background: rgba(255,255,255,0.05); color: #ccc; border: 1px solid rgba(255,255,255,0.08); }
.ct-btn-small     { padding: 6px 12px; font-size: 12px; }
.ct-wide          { width: 100%; }
.ct-big           { padding: 14px 20px; font-size: 15px; font-weight: 900; }

/* ── Terms details ──────────────────────────────────────────── */
.ct-terms-section { margin-top: 40px; }
.ct-terms-details {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.ct-terms-summary {
    padding: 14px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #ccc;
    list-style: none;
}
.ct-terms-summary::-webkit-details-marker { display: none; }
.ct-terms-body {
    padding: 0 18px 18px;
    font-size: 13px;
    line-height: 1.75;
    color: #aaa;
}
.ct-terms-body ul { padding-left: 20px; }
.ct-terms-body li { margin-bottom: 6px; }

/* ── Empty state ────────────────────────────────────────────── */
.ct-empty {
    text-align: center;
    padding: 48px 16px;
    color: #666;
    font-size: 14px;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.ct-tabs-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(255,255,255,0.07);
    margin-bottom: 24px;
    overflow-x: auto;
}
.ct-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -2px;
    transition: color 0.18s, border-color 0.18s;
}
.ct-tab:hover { color: #ccc; }
.ct-tab.is-active { color: #00ffd5; border-bottom-color: #00ffd5; }

/* ── Panes ──────────────────────────────────────────────────── */
.ct-pane { display: none; }
.ct-pane.is-active { display: block; }

/* ── Sample videos ──────────────────────────────────────────── */
.ct-sample-list { display: flex; flex-direction: column; gap: 10px; }
.ct-sample-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.ct-sample-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}
.ct-sample-title { flex: 1; }
.ct-sample-chevron { font-size: 11px; color: #00ffd5; }
.ct-sample-body { padding: 0 14px 14px; }

/* ── Stats bar ──────────────────────────────────────────────── */
.ct-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    margin: 24px 0;
}
.ct-stat-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 100px;
}
.ct-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #666;
    font-weight: 700;
}
.ct-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

/* ── Join CTA states ────────────────────────────────────────── */
.ct-join-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ct-already-in {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(0,255,213,0.06);
    border: 1px solid rgba(0,255,213,0.18);
    border-radius: 12px;
    padding: 18px;
}
.ct-already-icon { font-size: 24px; margin-top: 2px; }
.ct-already-sub  { margin: 4px 0 10px; font-size: 13px; opacity: 0.75; }
.ct-share-row    { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ct-share-code   {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #aaa;
    word-break: break-all;
    max-width: 340px;
}
.ct-status-notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.ct-status-pending  { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }
.ct-status-rejected { background: rgba(248,113,113,0.10); border: 1px solid rgba(248,113,113,0.25); color: #fca5a5; }
.ct-status-closed   { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #888; }
.ct-eligibility-notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #bbb;
}

/* ── Vote tab header ────────────────────────────────────────── */
.ct-vote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.ct-vote-title { font-size: 18px; font-weight: 800; margin: 0; color: #fff; }
.ct-sort-bar   { display: flex; gap: 6px; }
.ct-sort-btn {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #888;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.18s;
}
.ct-sort-btn:hover { color: #ccc; }
.ct-sort-btn.is-active {
    background: rgba(0,255,213,0.12);
    border-color: rgba(0,255,213,0.25);
    color: #00ffd5;
}

/* ── Entry card ─────────────────────────────────────────────── */
.ct-entry-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    transition: border-color 0.2s;
}
.ct-entry-card:target,
.ct-entry-card:target {
    border-color: rgba(0,255,213,0.4);
    box-shadow: 0 0 0 2px rgba(0,255,213,0.12);
}

/* Entry header */
.ct-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
}
.ct-entry-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ct-entry-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffd5, #0077ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #0a0a0a;
    flex-shrink: 0;
}
.ct-entry-name   { font-size: 14px; font-weight: 800; color: #fff; }
.ct-entry-handle { font-size: 12px; color: #666; margin-top: 2px; }
.ct-vote-chip {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,255,213,0.08);
    color: #00ffd5;
    font-weight: 700;
}

/* Entry video */
.ct-entry-video-section { padding: 0; }

.ct-entry-video-wrap {
    width: 100%;
    max-height: 320px;
    aspect-ratio: 9/16;
    max-width: 220px;
    margin: 0 auto;
    position: relative;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ct-entry-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder (generic thumbnail) */
.ct-entry-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}
.ct-entry-thumb-icon  { font-size: 36px; }
.ct-entry-thumb-label { font-size: 12px; font-weight: 600; }

/* Processing / failed state */
.ct-video-placeholder {
    background: #0f0f0f;
    padding: 28px;
    flex-direction: column;
    gap: 10px;
}
.ct-entry-video-status {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 6px;
}

/* Locked overlay */
.ct-video-locked {
    cursor: pointer;
}
.ct-video-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s;
}
.ct-video-locked:hover .ct-video-lock-overlay { background: rgba(0,0,0,0.48); }
.ct-video-lock-icon { font-size: 32px; }
.ct-video-lock-msg  {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,255,213,0.15);
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,255,213,0.3);
}

/* Entry actions row */
.ct-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.ct-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #bbb;
    transition: all 0.18s;
    white-space: nowrap;
}
.ct-btn-action:hover { border-color: rgba(255,255,255,0.15); color: #fff; }

.ct-btn-vote             { }
.ct-btn-vote.is-voted    { background: rgba(0,255,213,0.12); border-color: rgba(0,255,213,0.3); color: #00ffd5; }
.ct-btn-remove-vote      { font-size: 11px; color: #666; }
.ct-btn-like.is-liked    { background: rgba(255,80,120,0.12); border-color: rgba(255,80,120,0.3); color: #ff6090; }
.ct-btn-comments         { }
.ct-action-chip          { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ct-chip-disabled        { color: #555; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }

/* ── Comments ───────────────────────────────────────────────── */
.ct-comments-wrap {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
}
.ct-comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ct-comment {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.ct-comment-author { font-size: 12px; font-weight: 800; color: #00ffd5; margin-bottom: 4px; }
.ct-comment-body   { font-size: 13px; color: #ccc; line-height: 1.55; }
.ct-comment-time   { font-size: 11px; color: #555; margin-top: 5px; }
.ct-comment-form {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.ct-comment-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #e0e0e0;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.18s;
}
.ct-comment-input:focus {
    outline: none;
    border-color: rgba(0,255,213,0.35);
}
.ct-comment-login-prompt {
    font-size: 13px;
    color: #666;
}
.ct-comment-login-prompt a { color: #00ffd5; }

/* ── Modal ──────────────────────────────────────────────────── */
.ct-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.ct-modal {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 28px 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}
.ct-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.ct-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ct-modal-icon  { font-size: 36px; text-align: center; margin-bottom: 10px; }
.ct-modal-title { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.ct-modal-body  { font-size: 14px; color: #aaa; margin: 0 0 20px; line-height: 1.55; }
.ct-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ct-modal-actions .ct-btn { flex: 1; min-width: 120px; }

/* Join modal specifics */
.ct-join-modal-inner { max-width: 520px; }

/* ── Join form ──────────────────────────────────────────────── */
.ct-form-group   { margin-bottom: 16px; }
.ct-label        { display: block; font-size: 12px; font-weight: 700; color: #aaa; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.ct-required     { color: #f87171; }
.ct-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #e0e0e0;
    font-family: inherit;
    transition: border-color 0.18s;
    box-sizing: border-box;
}
.ct-input:focus  { outline: none; border-color: rgba(0,255,213,0.4); }
.ct-input-hint   { font-size: 11px; color: #555; margin-top: 5px; }
.ct-terms-check  { margin: 14px 0; }
.ct-check-label  {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #aaa;
    line-height: 1.55;
    cursor: pointer;
}
.ct-check-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: #00ffd5; }
.ct-check-label a { color: #00ffd5; }
.ct-form-error {
    background: rgba(248,113,113,0.10);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #fca5a5;
    margin-bottom: 14px;
}
.ct-confirm-box {
    background: rgba(0,255,213,0.05);
    border: 1px solid rgba(0,255,213,0.18);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.ct-confirm-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.ct-confirm-body  { font-size: 13px; color: #aaa; line-height: 1.6; margin-bottom: 20px; word-break: break-all; }

/* ── Winners grid ───────────────────────────────────────────── */
.ct-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.ct-winner-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.18s;
}
.ct-winner-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-2px); }
.ct-winner-trophy   { font-size: 36px; margin-bottom: 10px; }
.ct-winner-name     { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.ct-winner-username { font-size: 12px; color: #666; margin-bottom: 10px; }
.ct-winner-reward   { font-size: 20px; font-weight: 900; color: #f59e0b; margin-bottom: 8px; }
.ct-winner-note     { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.ct-winner-votes    { font-size: 12px; color: #666; margin-bottom: 14px; }
.ct-winner-view-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #00ffd5;
    background: rgba(0,255,213,0.10);
    border: 1px solid rgba(0,255,213,0.20);
    border-radius: 999px;
    padding: 5px 14px;
}
.ct-winner-modal-inner { max-width: 480px; }
.ct-winner-video { width: 100%; max-height: 70vh; border-radius: 8px; }

/* ── Winners CTA ────────────────────────────────────────────── */
.ct-winners-cta { text-align: center; padding: 16px 0 0; }
.ct-winners-empty { padding: 60px 20px; text-align: center; font-size: 16px; color: #666; }

/* ── Entry meta right ───────────────────────────────────────── */
.ct-entry-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .ct-cards-grid   { grid-template-columns: repeat(2, 1fr); }
    .ct-about-grid   { grid-template-columns: repeat(2, 1fr); }
    .ct-hero-title   { font-size: 26px; }
    .ct-winners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .ct-cards-grid         { grid-template-columns: 1fr; }
    .ct-about-grid         { grid-template-columns: 1fr; }
    .ct-hero-title         { font-size: 22px; }
    .ct-winners-grid       { grid-template-columns: 1fr; }
    .ct-vote-header        { flex-direction: column; align-items: flex-start; }
    .ct-entry-video-wrap   { max-width: 100%; aspect-ratio: 9/16; }
    .ct-modal              { padding: 20px 16px 18px; }
    .ct-stats-bar          { flex-direction: column; gap: 10px; }
    .ct-modal-actions      { flex-direction: column; }
    .ct-modal-actions .ct-btn { min-width: unset; }
}

/* =========================================================
   Public contest page fixes
   Add below existing contests.css
   ========================================================= */

.ct-public-shell {
    width: 100%;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ct-top-strip {
    width: 100%;
    background: rgba(13,13,13,.96);
}

.ct-top-strip-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ct-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.ct-brand-link:hover {
    color: #00ffd5;
}

.ct-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(0,255,213,.12);
    border: 1px solid rgba(0,255,213,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ct-mini-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ct-mini-nav a {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    font-size: 13px;
    font-weight: 800;
}

.ct-mini-nav a:hover,
.ct-mini-nav a.active {
    color: #00ffd5;
    border-color: rgba(0,255,213,.28);
    background: rgba(0,255,213,.08);
}

.ct-admin-nav-link {
    color: #fff !important;
    background: rgba(0,255,213,.16) !important;
}

.ct-nav-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.ct-landing-hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 34px;
}

.ct-hero-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ct-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ct-section-sub {
    color: #9ca3af;
    font-size: 14px;
    margin: 4px 0 0;
}

.ct-contest-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 20px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,255,213,.09), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.08);
}

.ct-page-title {
    margin: 6px 0 8px;
    font-size: 34px;
    line-height: 1.12;
    color: #fff;
    font-weight: 950;
}

.ct-page-sub {
    margin: 0;
    color: #aeb8c7;
    font-size: 14px;
    line-height: 1.6;
    max-width: 720px;
}

.ct-header-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
    min-width: 240px;
}

.ct-header-meta div {
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.ct-header-meta strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.ct-header-meta span {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 800;
}

.ct-wide-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    max-height: 540px;
}

.ct-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    margin: 20px 0 24px;
    overflow-x: auto;
}

.ct-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 900;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.ct-tab:hover {
    color: #fff;
}

.ct-tab.is-active {
    color: #00ffd5;
    border-bottom-color: #00ffd5;
}

.ct-pane {
    display: none;
}

.ct-pane.is-active {
    display: block;
}

.ct-description {
    color: #e5e7eb;
    font-size: 15px;
    line-height: 1.75;
}

.ct-description p {
    margin-bottom: 14px;
}

.ct-sample-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-sample-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
}

.ct-sample-toggle {
    width: 100%;
    min-height: 46px;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 900;
}

.ct-sample-chevron {
    color: #00ffd5;
}

.ct-sample-body {
    padding: 0 14px 14px;
}

.ct-stats-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
    margin: 24px 0;
}

.ct-stat-block {
    padding: 16px;
    border-right: 1px solid rgba(255,255,255,.07);
}

.ct-stat-block:last-child {
    border-right: none;
}

.ct-stat-label {
    display: block;
    color: #8b949e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 900;
    margin-bottom: 8px;
}

.ct-stat-val {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
}

.ct-notice {
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,255,213,.08);
    border: 1px solid rgba(0,255,213,.2);
    color: #dffcf7;
    line-height: 1.6;
}

.ct-notice strong {
    color: #fff;
}

.ct-notice-error {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.25);
    color: #fecaca;
}

.ct-notice-success {
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.25);
    color: #bbf7d0;
}

.ct-notice-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ct-form-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
}

.ct-form-card h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.ct-form-card p {
    margin: 0 0 18px;
    color: #aeb8c7;
    font-size: 14px;
    line-height: 1.6;
}

.ct-label {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 8px;
}

.ct-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.10);
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    margin-bottom: 14px;
    font-size: 14px;
}

.ct-input:focus {
    border-color: rgba(0,255,213,.42);
    box-shadow: 0 0 0 3px rgba(0,255,213,.08);
}

.ct-full-btn {
    width: 100%;
    min-height: 48px;
}

.ct-form-msg {
    margin-top: 12px;
    font-size: 13px;
    color: #aeb8c7;
    font-weight: 800;
}

.ct-form-msg.success {
    color: #86efac;
}

.ct-form-msg.error {
    color: #fecaca;
}

.ct-vote-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.ct-sort-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ct-sort-links a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ct-sort-links a.active,
.ct-sort-links a:hover {
    color: #00ffd5;
    border-color: rgba(0,255,213,.32);
    background: rgba(0,255,213,.08);
}

.ct-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.ct-entry-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow: hidden;
}

.ct-entry-video {
    background: #050505;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ct-entry-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-video-pending {
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #aeb8c7;
    text-align: center;
    padding: 20px;
}

.ct-entry-body {
    padding: 16px;
}

.ct-entry-user strong {
    display: block;
    color: #fff;
    font-size: 16px;
}

.ct-entry-user span,
.ct-entry-handle {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 2px;
}

.ct-entry-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0;
}

.ct-entry-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 800;
}

.ct-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ct-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.ct-comments {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2px;
}

.ct-comments-toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #00ffd5;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
    padding: 0 0 10px;
}

.ct-comments-body {
    padding-top: 4px;
}

.ct-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.ct-comment {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 10px 12px;
}

.ct-comment strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.ct-comment p {
    margin: 6px 0;
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
}

.ct-comment small {
    color: #6b7280;
    font-size: 11px;
}

.ct-comment-empty {
    color: #94a3b8;
    font-size: 13px;
}

.ct-login-comment {
    display: inline-block;
    color: #00ffd5;
    font-size: 13px;
    font-weight: 900;
}

.ct-winners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.ct-winner-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.ct-winner-card:hover {
    border-color: rgba(0,255,213,.28);
    background: rgba(0,255,213,.05);
}

.ct-winner-trophy {
    font-size: 34px;
    margin-bottom: 10px;
}

.ct-winner-name {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.ct-winner-username {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 3px;
}

.ct-winner-reward {
    color: #00ffd5;
    font-size: 20px;
    font-weight: 950;
    margin-top: 12px;
}

.ct-winner-note {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
}

.ct-winner-votes {
    color: #cbd5e1;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
}

.ct-winner-view-btn {
    margin-top: 14px;
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #081018;
    background: #00ffd5;
    font-size: 13px;
    font-weight: 950;
}

.ct-winners-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ct-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.76);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ct-modal {
    width: min(880px, 100%);
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 18px;
    position: relative;
}

.ct-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
}

.ct-winner-modal-name {
    color: #fff;
    font-weight: 950;
    font-size: 18px;
    margin: 0 44px 14px 0;
}

.ct-winner-video {
    width: 100%;
    max-height: 76vh;
    border-radius: 14px;
    background: #000;
}

.ct-empty {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .ct-contest-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ct-header-meta {
        min-width: 0;
        width: 100%;
    }

    .ct-stats-bar {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .ct-stat-block {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .ct-entry-grid,
    .ct-winners-grid {
        grid-template-columns: 1fr;
    }

    .ct-vote-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ct-top-strip-inner {
        align-items: center;
    }

    .ct-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ct-mini-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 64px;
        background: #0d0d0d;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 16px;
        padding: 12px;
        z-index: 50;
    }

    .ct-mini-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .ct-mini-nav a {
        justify-content: center;
        border-radius: 12px;
    }

    .ct-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ct-hero-title,
    .ct-page-title {
        font-size: 28px;
    }

    .ct-about-grid,
    .ct-cards-grid {
        grid-template-columns: 1fr;
    }

    .ct-stats-bar {
        grid-template-columns: 1fr;
    }

    .ct-card-actions,
    .ct-entry-actions,
    .ct-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-btn {
        width: 100%;
    }
}

/* =========================================================
   Contest join form modal + affiliate notice
   Add below existing contests.css
   ========================================================= */

.ct-affiliate-auto-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin: 16px 0;
    border-radius: 14px;
    background: rgba(0,255,213,.08);
    border: 1px solid rgba(0,255,213,.18);
}

.ct-affiliate-auto-note span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0,255,213,.14);
    border: 1px solid rgba(0,255,213,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    font-size: 19px;
}

.ct-affiliate-auto-note strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 3px;
}

.ct-affiliate-auto-note p {
    margin: 0;
    color: #bffcf1;
    font-size: 13px;
    line-height: 1.5;
}

.ct-soft-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.ct-soft-note.warning {
    background: rgba(245,158,11,.09);
    border-color: rgba(245,158,11,.22);
    color: #fde68a;
}

.ct-action-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.78);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ct-action-modal {
    width: min(520px, 100%);
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.ct-action-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.ct-action-modal-close:hover {
    background: rgba(255,255,255,.14);
}

.ct-action-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(0,255,213,.10);
    border: 1px solid rgba(0,255,213,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.ct-action-modal h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 40px 10px 0;
    font-weight: 950;
}

.ct-action-modal p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.ct-action-modal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ct-action-resource-link {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: .18s ease;
}

.ct-action-resource-link:hover {
    border-color: rgba(0,255,213,.32);
    background: rgba(0,255,213,.07);
}

.ct-action-resource-link span {
    display: block;
    color: #00ffd5;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.ct-action-resource-link strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.ct-action-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ct-action-modal-buttons .ct-btn {
    flex: 1;
    min-width: 140px;
}

@media (max-width: 520px) {
    .ct-action-modal {
        padding: 20px;
        border-radius: 18px;
    }

    .ct-action-modal h3 {
        font-size: 20px;
    }

    .ct-action-modal-buttons {
        flex-direction: column;
    }

    .ct-action-modal-buttons .ct-btn {
        width: 100%;
    }
}

/* =========================================================
   Vote page entry card fix - portrait video friendly
   ========================================================= */

.ct-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
}

.ct-entry-card-fixed {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 980px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
}

.ct-entry-video-fixed {
    width: 100%;
    min-height: 520px;
    max-height: 620px;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ct-entry-video-fixed .ct-entry-video-el,
.ct-entry-video-fixed video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.ct-entry-body-fixed {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}

.ct-entry-body-fixed .ct-entry-user strong {
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    display: block;
}

.ct-entry-body-fixed .ct-entry-user span,
.ct-entry-body-fixed .ct-entry-handle {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.ct-entry-stats-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}

.ct-entry-stats-fixed span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 900;
}

.ct-entry-actions-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ct-entry-actions-fixed .ct-btn {
    min-height: 42px;
}

.ct-comments-fixed {
    margin-top: 2px;
    padding-top: 2px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.ct-comments-fixed .ct-comments-toggle {
    width: 100%;
    border: 1px solid rgba(0,255,213,.18);
    background: rgba(0,255,213,.07);
    color: #00ffd5;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    font-weight: 950;
    cursor: pointer;
}

.ct-comments-fixed .ct-comments-toggle:hover {
    background: rgba(0,255,213,.11);
}

.ct-comments-fixed .ct-comments-body {
    margin-top: 5px;
}

.ct-video-pending {
    color: #cbd5e1;
    text-align: center;
    padding: 20px;
}

.ct-video-pending a {
    color: #00ffd5;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .ct-entry-card-fixed {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .ct-entry-video-fixed {
        min-height: auto;
        max-height: none;
        aspect-ratio: 9 / 16;
    }

    .ct-entry-video-fixed .ct-entry-video-el,
    .ct-entry-video-fixed video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 560px) {
    .ct-entry-card-fixed {
        border-radius: 16px;
    }

    .ct-entry-body-fixed {
        padding: 16px;
    }

    .ct-entry-actions-fixed {
        flex-direction: column;
    }

    .ct-entry-actions-fixed .ct-btn {
        width: 100%;
    }
}

/* Contest vote accordion */
.ct-entry-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-entry-accordion {
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    scroll-margin-top: 90px;
}

.ct-entry-accordion.is-open {
    border-color: rgba(0,255,213,.35);
    box-shadow: 0 0 0 1px rgba(0,255,213,.08) inset, 0 12px 28px rgba(0,0,0,.25);
}

.ct-entry-accordion-head {
    width: 100%;
    border: 0;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
}

.ct-entry-accordion-head:hover {
    background: #111c31;
}

.ct-entry-acc-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.ct-entry-acc-left strong {
    color: #00ffd5;
    white-space: nowrap;
}

.ct-entry-acc-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    display: block;
}

.ct-entry-acc-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ct-entry-acc-votes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #dbeafe;
    font-size: 13px;
}

.ct-entry-acc-votes b {
    color: #fff;
}

.ct-entry-acc-icon {
    font-size: 16px;
    line-height: 1;
}

.ct-entry-accordion-body {
    padding: 14px;
    background: #0b1220;
}

.ct-entry-card-accordion {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    overflow: hidden;
}

.ct-entry-video-fixed {
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-entry-video-el {
    width: 100%;
    max-width: 430px;
    height: auto;
    max-height: 760px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    display: block;
}

.ct-entry-body-fixed {
    padding: 14px;
}

.ct-entry-stats-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.ct-stat-action {
   border: 1px solid rgba(255,255,255,.09);
    background: #111827;
    color: #e5e7eb;
    padding: 9px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ct-stat-action:hover {
    border-color: rgba(0,255,213,.35);
    color: #fff;
}

.ct-vote-count {
    background: rgba(0,255,213,.08);
    color: #dffef9;
}

.ct-like-count {
    background: rgba(244,63,94,.08);
    color: #ffe4ea;
}

.ct-comment-count {
    background: rgba(59,130,246,.08);
    color: #dbeafe;
}

.ct-entry-actions-fixed {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.ct-comments-fixed {
    margin-top: 5px;
}

.ct-comments-body {
    display: block;
    background: #08111f;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 12px;
}

.ct-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.ct-comment {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 10px 12px;
}

.ct-comment strong {
    display: block;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}

.ct-comment p {
    color: #d1d5db;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.5;
}

.ct-comment small {
    color: #94a3b8;
    font-size: 12px;
}

.ct-comment-empty {
    color: #94a3b8;
    background: #0f172a;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
}

.ct-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-comment-form textarea.ct-input {
    min-height: 92px;
    resize: vertical;
    margin-bottom: 0;
    background: #020617;
    border: 1px solid #263244;
    border-radius: 12px;
    color: #fff;
}

.ct-comment-form textarea.ct-input:focus {
    border-color: #00ffd5;
    box-shadow: 0 0 0 2px rgba(0,255,213,.12);
}

.ct-comment-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ct-login-comment-box {
    background: rgba(0,255,213,.07);
    border: 1px solid rgba(0,255,213,.16);
    border-radius: 12px;
    padding: 12px;
}

.ct-login-comment-box p {
    margin: 0 0 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.ct-video-pending {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #cbd5e1;
    background: #020617;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ct-video-pending a {
    color: #00ffd5;
    font-weight: 800;
}

.ct-action-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.75);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ct-action-modal {
    width: 100%;
    max-width: 430px;
    background: #0f172a;
    border: 1px solid rgba(0,255,213,.22);
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    position: relative;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.ct-action-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}

.ct-action-modal-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.ct-action-modal h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ct-action-modal p {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.55;
}

.ct-action-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ct-action-modal-links {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.ct-action-resource-link {
    display: block;
    background: #020617;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.ct-action-resource-link span {
    display: block;
    color: #00ffd5;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 3px;
}

.ct-action-resource-link strong {
    color: #fff;
    font-size: 13px;
}

@media (min-width: 900px) {
    .ct-entry-card-accordion {
        display: grid;
        grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
        gap: 0;
    }

    .ct-entry-video-fixed {
        padding: 14px;
    }
}

@media (max-width: 768px) {
    .ct-entry-accordion-head {
        padding: 12px 12px;
        gap: 8px;
    }

    .ct-entry-acc-left {
        gap: 6px;
    }

    .ct-entry-acc-name {
        max-width: 150px;
        font-size: 13px;
    }

    .ct-entry-acc-votes {
        font-size: 12px;
    }

    .ct-entry-accordion-body {
        padding: 10px;
    }

    .ct-entry-video-el {
        max-width: 100%;
        max-height: 70vh;
    }

    .ct-entry-stats-fixed,
    .ct-entry-actions-fixed,
    .ct-comment-form-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .ct-stat-action,
    .ct-entry-actions-fixed .ct-btn,
    .ct-comment-form-actions .ct-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 7px;
        font-size: 12px;
        margin: 0;
    }

    .ct-comment-form-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .ct-entry-acc-name {
        max-width: 118px;
    }

    .ct-entry-acc-right {
        gap: 6px;
    }
}


/* ── Compact comment list (3 shown, then chat link) ─────────── */
.ct-comments-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.ct-comment-compact {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 7px 10px;
}

.ct-comment-compact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.ct-comment-compact-head strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ct-comment-compact-head small {
    color: #6b7280;
    font-size: 11px;
    white-space: nowrap;
}

.ct-comment-compact p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.ct-comments-chat-link {
    margin: 3px 0 4px;
}

.ct-comments-chat-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #00ffd5;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0,255,213,.07);
    border: 1px solid rgba(0,255,213,.16);
    transition: background .18s;
}

.ct-comments-chat-link a:hover {
    background: rgba(0,255,213,.13);
}

.ct-description img,
.ct-terms-body img {
    max-width: 100%;
    width: auto;
    height: auto !important;
    border-radius: 10px;
    display: block;
    margin: 14px 0;
}

.ct-description img[style],
.ct-terms-body img[style] {
    max-width: 100% !important;
    height: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   contest-video-thumb.css
   Add these rules to your contest stylesheet (e.g. contest.css or tools.css).
   ═══════════════════════════════════════════════════════════════════════ */


/* ── Outer wrapper ────────────────────────────────────────────────────── */
.ct-vthumb-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

/* ── Thumbnail shell (the "poster" state) ─────────────────────────────── */
.ct-vthumb-shell {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 14px;
    background: #0a0f18;
    display: block;
}

/* Landscape: intro video (Mux/YouTube) */
.ct-vthumb-landscape .ct-vthumb-shell {
    aspect-ratio: 16 / 9;
}

/* Portrait: Facebook/Instagram samples + contestant entries */
.ct-vthumb-portrait .ct-vthumb-shell,
.ct-vthumb-entry .ct-vthumb-shell {
    aspect-ratio: 9 / 16;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Thumbnail image (YouTube, Mux thumbnails) ─────────────────────────── */
.ct-vthumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    border-radius: 14px;
}

.ct-vthumb-shell:hover .ct-vthumb-img {
    transform: scale(1.03);
    filter: brightness(0.82);
}

/* ── Gradient fallback (when no thumb URL could be derived) ─────────────── */
.ct-vthumb-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #071018 0%, #0d2535 40%, #112d40 100%);
    border-radius: 14px;
}

/* ── Poster-from-video element (entry videos) ──────────────────────────── */
/* We render a muted <video> at 0.5 s to extract the first frame as a poster */
.ct-vthumb-poster-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.35s ease, filter 0.35s ease;
    pointer-events: none;   /* clicks pass through to the shell */
}

.ct-vthumb-shell:hover .ct-vthumb-poster-el {
    transform: scale(1.03);
    filter: brightness(0.75);
}

/* ── Dark overlay on poster (makes play button pop) ────────────────────── */
.ct-vthumb-poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    transition: background 0.25s ease;
}

.ct-vthumb-shell:hover .ct-vthumb-poster-overlay {
    background: rgba(0, 0, 0, 0.42);
}

/* ── Play button ────────────────────────────────────────────────────────── */
.ct-vthumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease;
    z-index: 3;
    pointer-events: none;   /* shell handles the click */
}

.ct-vthumb-shell:hover .ct-vthumb-play {
    transform: translate(-50%, -50%) scale(1.14);
    filter: drop-shadow(0 0 14px rgba(0, 255, 213, 0.55));
}

.ct-vthumb-play svg {
    width: 64px;
    height: 64px;
    display: block;
}

/* ── Name / label overlay ───────────────────────────────────────────────── */
.ct-vthumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
    border-radius: 0 0 14px 14px;
    z-index: 2;
    pointer-events: none;
}

/* Embed ratio containers */
.ct-vthumb-embed .ct-video-ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ct-vthumb-embed .ct-video-ratio-portrait {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
}

.ct-vthumb-embed .ct-video-ratio iframe,
.ct-vthumb-embed .ct-video-ratio-portrait iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ct-vthumb-entry .ct-vthumb-embed {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
}

/* Native <video> inside embed (entry videos) */
.ct-vthumb-embed .ct-entry-video-el {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ct-vthumb-play {
        width: 52px;
        height: 52px;
    }
    .ct-vthumb-play svg {
        width: 52px;
        height: 52px;
    }
    .ct-vthumb-label {
        font-size: 12px;
        padding: 22px 10px 8px;
    }
}

/* Sample mp4 player inside embed (portrait, centered) */
.ct-vthumb-embed .ct-vthumb-player-el {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 9 / 16;
    background: #000;
    object-fit: contain;
}