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

    :root {
      --bg:       #f8f7f4;
      --surface:  #ffffff;
      --surface2: #f0efe9;
      --border:   #e2dfd8;
      --border2:  #d0cdc5;
      --accent:   #b8943a;
      --accent-h: #c9a84c;
      --text:     #1a1916;
      --muted:    #7a7570;
      --faint:    #c0bdb6;
      --kieran:   #2176d4;
      --kensi:    #d4538a;
      --both:     #b8943a;
      --red:      #d94040;
    }

    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      min-height: 100vh;
    }

    /* ── NAV ─────────────────────────────────────────────────────────── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      height: 60px;
      background: rgba(248,247,244,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2rem;
    }
    .nav-logo {
      font-family: 'Dancing Script', cursive;
      font-weight: 700; font-size: 1.6rem;
      background: linear-gradient(135deg, #b8943a, #e8c86a, #c9a84c);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
      cursor: pointer; text-decoration: none;
    }
    .nav-links { display: flex; gap: 0.2rem; align-items: center; }
    .nav-link {
      background: none; border: none; cursor: pointer;
      color: var(--muted); font-family: 'Inter', sans-serif;
      font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em;
      padding: 0.5rem 0.85rem; border-radius: 4px;
      transition: color 0.15s, background 0.15s;
    }
    .nav-link:hover { color: var(--text); background: var(--surface2); }
    .nav-link.active { color: var(--accent); }
    .nav-link.admin-link { color: var(--accent); border: 1px solid rgba(184,148,58,0.35); }
    .nav-link.admin-link:hover { background: rgba(184,148,58,0.08); }

    /* ── HAMBURGER ───────────────────────────────────────────────────── */
    .nav-hamburger {
      display: none; flex-direction: column; justify-content: center; gap: 5px;
      background: none; border: none; cursor: pointer; padding: 6px;
    }
    .nav-hamburger span {
      display: block; width: 22px; height: 2px;
      background: var(--muted); border-radius: 2px; transition: all 0.2s;
    }
    .nav-mobile {
      display: none; position: absolute; top: 60px; left: 0; right: 0;
      background: rgba(248,247,244,0.98); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      flex-direction: column; padding: 0.5rem 1rem 1rem; z-index: 99;
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile .nav-link { text-align: left; font-size: 1rem; padding: 0.75rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); }
    .nav-mobile .nav-link:last-child { border-bottom: none; }
    @media (max-width: 640px) {
      .nav-links { display: none; }
      .nav-hamburger { display: flex; }
    }

    /* ── LAYOUT ──────────────────────────────────────────────────────── */
    main { padding-top: 60px; min-height: 100vh; }
    .container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

    /* ── SECTION HEADERS ─────────────────────────────────────────────── */
    .section-header {
      display: flex; align-items: center; gap: 1.5rem;
      margin-bottom: 2rem;
    }
    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic; font-size: 1.4rem;
      color: var(--text); white-space: nowrap;
    }
    .section-line { flex: 1; height: 1px; background: var(--border); }
    .section-action {
      background: none; border: none; cursor: pointer;
      color: var(--muted); font-size: 0.8rem;
      font-family: 'Inter', sans-serif;
      padding: 0.35rem 0.75rem;
      border: 1px solid var(--border2);
      transition: all 0.15s;
      white-space: nowrap;
    }
    .section-action:hover { color: var(--accent); border-color: var(--accent); }

    /* ── HERO ────────────────────────────────────────────────────────── */
    .hero {
      text-align: center; padding: 4rem 1.5rem 3rem;
      border-bottom: 1px solid var(--border);
      margin-bottom: 3rem;
    }
    .hero-eyebrow {
      font-size: 0.7rem; letter-spacing: 0.25em;
      text-transform: uppercase; color: var(--accent);
      margin-bottom: 1.2rem;
    }
    .hero-title {
      font-family: 'Dancing Script', cursive;
      font-weight: 700;
      font-size: clamp(3.5rem, 10vw, 6.5rem);
      line-height: 0.95;
      background: linear-gradient(145deg, #b8943a 0%, #e8c86a 45%, #c9a84c 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 1rem;
    }
    .hero-sub {
      font-size: 0.9rem; color: var(--muted);
      letter-spacing: 0.08em; font-weight: 300;
    }
    .hero-divider {
      display: flex; align-items: center; gap: 0.8rem;
      justify-content: center; margin: 1.5rem 0;
    }
    .hero-divider::before, .hero-divider::after {
      content: ''; width: 50px; height: 1px;
      background: linear-gradient(to right, transparent, rgba(184,148,58,0.4));
    }
    .hero-divider::after { background: linear-gradient(to left, transparent, rgba(184,148,58,0.4)); }
    .hero-diamond { width: 5px; height: 5px; border: 1px solid rgba(184,148,58,0.5); transform: rotate(45deg); }

    /* ── PLAYER BADGE ────────────────────────────────────────────────── */
    .badge {
      display: inline-block; font-size: 0.65rem; font-weight: 600;
      letter-spacing: 0.06em; padding: 0.2rem 0.55rem;
      border-radius: 2px; text-transform: uppercase;
    }
    .badge-Kieran  { background: rgba(33,118,212,0.1); color: var(--kieran); }
    .badge-Kensi   { background: rgba(212,83,138,0.1); color: var(--kensi); }
    .badge-Both    { background: rgba(184,148,58,0.12); color: var(--both); }

    /* ── VIDEO CARD ──────────────────────────────────────────────────── */
    .grid { display: grid; gap: 1.25rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 900px) {
      .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 560px) {
      .grid-3, .grid-4 { grid-template-columns: 1fr; }
    }

    .video-card {
      background: var(--surface); border: 1px solid var(--border);
      cursor: pointer; overflow: hidden;
      transition: border-color 0.2s, transform 0.2s;
    }
    .video-card:hover { border-color: var(--border2); transform: translateY(-2px); }
    .video-thumb {
      position: relative; aspect-ratio: 16/9; overflow: hidden;
      background: var(--surface2);
    }
    .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .play-overlay {
      position: absolute; inset: 0; display: flex;
      align-items: center; justify-content: center;
      background: rgba(0,0,0,0.35);
      transition: background 0.2s;
    }
    .video-card:hover .play-overlay { background: rgba(0,0,0,0.5); }
    .play-icon {
      width: 44px; height: 44px; border-radius: 50%;
      background: rgba(201,168,76,0.9);
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.2s, background 0.2s;
    }
    .video-card:hover .play-icon { transform: scale(1.1); background: var(--accent); }
    .play-icon::after {
      content: ''; width: 0; height: 0;
      border-style: solid; border-width: 7px 0 7px 13px;
      border-color: transparent transparent transparent #000;
      margin-left: 3px;
    }
    .video-info { padding: 0.85rem 1rem; }
    .video-title {
      font-size: 0.88rem; font-weight: 500; color: var(--text);
      margin-bottom: 0.5rem; line-height: 1.35;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .video-meta { display: flex; align-items: center; gap: 0.5rem; }
    .video-date  { font-size: 0.72rem; color: var(--muted); }
    .video-event { font-size: 0.72rem; color: var(--muted); font-style: italic; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ── PHOTO CARD ──────────────────────────────────────────────────── */
    .photo-card {
      position: relative; aspect-ratio: 1/1; overflow: hidden;
      background: var(--surface2); cursor: pointer;
      border: 1px solid var(--border);
      transition: transform 0.2s, border-color 0.2s;
    }
    .photo-card:hover { transform: scale(1.02); border-color: var(--border2); }
    .photo-card img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.3s;
    }
    .photo-card:hover img { transform: scale(1.05); }
    .photo-overlay {
      position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
      opacity: 0; transition: opacity 0.2s; padding: 0.75rem;
      display: flex; flex-direction: column; justify-content: flex-end;
    }
    .photo-card:hover .photo-overlay { opacity: 1; }
    .photo-caption { font-size: 0.75rem; color: #e0e0e0; font-weight: 400; margin-bottom: 0.35rem; }
    .tkd-card-delete {
      position: absolute; top: 5px; right: 5px; z-index: 3;
      background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%;
      width: 26px; height: 26px; font-size: 1rem; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.15s, background 0.15s;
    }
    .photo-card:hover .tkd-card-delete { opacity: 1; }
    .tkd-card-delete:hover { background: rgba(200,40,40,0.85) !important; opacity: 1 !important; }

    /* ── FILTERS ─────────────────────────────────────────────────────── */
    .filters { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
    .filter-btn {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-family: 'Inter', sans-serif;
      font-size: 0.78rem; padding: 0.4rem 1rem; cursor: pointer;
      transition: all 0.15s; letter-spacing: 0.04em;
    }
    .filter-btn:hover { border-color: var(--border2); color: var(--text); }
    .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

    /* ── VIDEO MODAL ─────────────────────────────────────────────────── */
    .modal-backdrop {
      display: none; position: fixed; inset: 0; z-index: 200;
      background: rgba(0,0,0,0.92);
      align-items: center; justify-content: center;
      padding: 1rem;
    }
    .modal-backdrop.open { display: flex; }
    .modal-close {
      position: absolute; top: 1.25rem; right: 1.5rem;
      background: none; border: none; color: var(--muted);
      font-size: 1.8rem; cursor: pointer; line-height: 1;
      transition: color 0.15s;
    }
    .modal-close:hover { color: var(--text); }
    .video-modal-inner { width: 100%; max-width: 860px; }
    .video-modal-title {
      font-size: 1rem; color: var(--text); margin-bottom: 0.75rem;
      font-weight: 500; padding: 0 0.25rem;
    }
    .iframe-wrap {
      position: relative; padding-bottom: 56.25%; height: 0;
      background: #000;
    }
    .iframe-wrap iframe {
      position: absolute; inset: 0; width: 100%; height: 100%;
      border: none;
    }

    /* ── PHOTOSWIPE OVERRIDES ────────────────────────────────────────── */
    .pswp { --pswp-bg: #0a0a08; z-index: 10000 !important; }
    body.pswp-open nav { z-index: 1 !important; }
    .pswp .pswp__download-button {
      color: #fff !important; background: transparent !important;
      font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
      padding: 0 12px; width: auto; opacity: 0.8; white-space: nowrap;
    }
    .pswp .pswp__download-button:hover { opacity: 1; }
    .pswp__custom-caption {
      position: absolute; bottom: 84px; left: 0; right: 0;
      padding: 0.5rem 1rem; text-align: center;
      font-family: 'Inter', sans-serif; font-size: 0.82rem; color: #eee;
      background: linear-gradient(transparent, rgba(0,0,0,0.55));
      pointer-events: none; z-index: 10;
    }
    .pswp__thumbnails {
      position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
      height: 80px;
      display: flex; align-items: center;
      overflow-x: auto; overflow-y: hidden;
      gap: 4px; padding: 8px 12px;
      background: rgba(0,0,0,0.75);
      scrollbar-width: none;
      touch-action: pan-x;
    }
    .pswp__thumbnails::-webkit-scrollbar { display: none; }
    .pswp__thumbnail {
      height: 60px; width: auto; flex-shrink: 0;
      object-fit: cover; cursor: pointer;
      opacity: 0.45; border: 2px solid transparent; border-radius: 2px;
      transition: opacity 0.15s, border-color 0.15s;
    }
    .pswp__thumbnail--active { opacity: 1; border-color: #b8943a; }

    /* ── METADATA PANEL ─────────────────────────────────────────────── */
    .pswp__meta-panel {
      position: absolute; right: 0; top: 44px; bottom: 80px;
      width: 210px;
      background: rgba(10,10,8,0.88); backdrop-filter: blur(16px);
      border-left: 1px solid rgba(255,255,255,0.1);
      padding: 1.1rem 1rem; z-index: 20;
      opacity: 0; pointer-events: none;
      transform: translateX(100%);
      transition: opacity 0.2s, transform 0.2s;
      overflow-y: auto;
    }
    .pswp__meta-panel.meta-visible {
      opacity: 1; pointer-events: auto;
      transform: translateX(0);
    }
    .pswp__meta-row {
      display: flex; flex-direction: column; gap: 0.2rem;
      padding: 0.55rem 0; font-family: 'Inter', sans-serif;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .pswp__meta-row:last-child { border-bottom: none; }
    .pswp__meta-label {
      color: rgba(255,255,255,0.38);
      font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase;
    }
    .pswp__meta-value { color: rgba(255,255,255,0.88); font-size: 0.82rem; word-break: break-word; }
    .pswp--meta-open .pswp__button--arrow--next { right: 215px !important; }
    @media (max-width: 768px) {
      .pswp__button--meta-button { display: none !important; }
      .pswp__meta-panel { display: none !important; }
    }

    /* ── ADMIN LAYOUT ───────────────────────────────────────────────── */
    .admin-layout { display: flex; gap: 2rem; align-items: flex-start; }
    .admin-content { flex: 1; min-width: 0; }
    .admin-sidebar {
      width: 130px; flex-shrink: 0;
      position: sticky; top: 80px;
      padding-top: 0.25rem;
    }
    .admin-sidebar-label {
      font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--faint); padding: 0 0.75rem 0.75rem;
    }
    .admin-sidebar-btn {
      display: block; width: 100%; text-align: left;
      background: none; border: none;
      border-left: 2px solid var(--border);
      padding: 0.55rem 0.75rem;
      font-family: 'Inter', sans-serif; font-size: 0.83rem;
      color: var(--muted); cursor: pointer; letter-spacing: 0.02em;
      transition: color 0.15s, border-color 0.15s;
    }
    .admin-sidebar-btn:hover { color: var(--text); border-left-color: var(--border2); }
    .admin-sidebar-btn.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

    /* ── ADMIN ───────────────────────────────────────────────────────── */
    .admin-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 2.5rem; padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .admin-welcome { font-size: 0.85rem; color: var(--muted); }
    .admin-welcome strong { color: var(--text); }
    .btn-logout {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-size: 0.78rem; padding: 0.4rem 0.9rem;
      cursor: pointer; font-family: 'Inter', sans-serif;
      transition: all 0.15s;
    }
    .btn-logout:hover { border-color: var(--red); color: var(--red); }

    .admin-section {
      background: var(--surface); border: 1px solid var(--border);
      padding: 1.75rem; margin-bottom: 2rem;
    }
    .admin-section-title {
      font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 1.5rem;
    }

    .access-stats { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
    .access-stat {
      flex: 1; min-width: 100px; background: var(--surface2);
      border: 1px solid var(--border); padding: 0.9rem 1rem; text-align: center;
    }
    .access-stat-num { font-size: 1.6rem; font-weight: 600; color: var(--text); line-height: 1; }
    .access-stat-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.05em; }
    .access-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
    .access-table th {
      text-align: left; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
      color: var(--muted); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
    }
    .access-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }
    .access-table tr:last-child td { border-bottom: none; }
    .access-table tr:hover td { background: var(--surface2); }

    /* ── TKD PAGE ────────────────────────────────────────────────────── */
    .tkd-header {
      height: 60px; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2rem; background: rgba(248,247,244,0.97);
    }
    .tkd-logo {
      font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 1.5rem;
      background: linear-gradient(135deg, #b8943a, #e8c86a, #c9a84c);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .tkd-badge {
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--accent); border: 1px solid rgba(184,148,58,0.4);
      padding: 0.2rem 0.55rem;
    }
    .tkd-lock {
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; padding: 5rem 1rem 3rem; text-align: center;
    }
    .tkd-lock-title {
      font-family: 'Cormorant Garamond', serif; font-style: italic;
      font-size: 1.8rem; margin-bottom: 0.4rem;
    }
    .tkd-lock-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
    .tkd-back {
      background: none; border: 1px solid var(--border); color: var(--muted);
      font-family: 'Inter', sans-serif; font-size: 0.78rem; padding: 0.35rem 0.8rem;
      cursor: pointer; transition: border-color 0.15s, color 0.15s;
    }
    .tkd-back:hover { border-color: var(--accent); color: var(--accent); }
    .access-result-ok  { color: #2aa65c; font-weight: 500; }
    .access-result-fail { color: var(--red); font-weight: 500; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
    .form-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }
    .form-input, .form-select, .form-textarea {
      background: var(--bg); border: 1px solid var(--border);
      color: var(--text); font-family: 'Inter', sans-serif;
      font-size: 0.85rem; padding: 0.6rem 0.75rem;
      outline: none; transition: border-color 0.15s; width: 100%;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
    .form-select {
      appearance: none; cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a7570'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.65rem center;
      padding-right: 2rem;
    }
    .form-textarea { resize: vertical; min-height: 80px; }
    .form-input::placeholder { color: var(--faint); }

    .yt-preview { margin-top: 0.5rem; }
    .yt-preview img { width: 120px; height: 68px; object-fit: cover; border: 1px solid var(--border); }

    .btn-primary {
      background: var(--accent); color: #000; border: none;
      font-family: 'Inter', sans-serif; font-weight: 600;
      font-size: 0.85rem; padding: 0.75rem 1.5rem;
      cursor: pointer; letter-spacing: 0.04em;
      transition: background 0.15s; text-transform: uppercase;
    }
    .btn-primary:hover { background: var(--accent-h); }
    .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

    /* Drop zone */
    .drop-zone {
      border: 1.5px dashed var(--border);
      padding: 2rem; text-align: center; cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      position: relative; margin-bottom: 1rem;
    }
    .drop-zone.dragover { border-color: var(--accent); background: rgba(184,148,58,0.05); }
    .drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
    .drop-zone-label { font-size: 0.82rem; color: var(--muted); }
    .drop-zone-label strong { color: var(--text); }

    /* Upload queue */
    .upload-queue { margin-top: 1rem; }
    .upload-item {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.5rem 0.75rem; background: var(--bg);
      border: 1px solid var(--border); margin-bottom: 0.35rem;
      font-size: 0.78rem; flex-wrap: wrap;
    }
    .upload-item-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .upload-item-status { font-size: 0.7rem; white-space: nowrap; }
    .upload-item-bar-wrap { width: 100%; height: 3px; background: var(--border); display: none; }
    .upload-item-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.15s; }
    .upload-status-pending  { color: var(--muted); }
    .upload-status-uploading{ color: var(--accent); }
    .upload-status-done     { color: #2a8a55; }
    .upload-status-error    { color: var(--red); }

    /* Floating upload tray */
    #uploadTray {
      display: none; position: fixed; bottom: 1.5rem; right: 1.5rem;
      z-index: 500;
      background: var(--surface); border: 1px solid var(--border2);
      box-shadow: 0 4px 24px rgba(0,0,0,0.14);
      width: min(340px, calc(100vw - 2rem));
      max-height: 320px;
      display: none; flex-direction: column;
    }
    #uploadTray.active { display: flex; }
    .tray-header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .tray-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
    .tray-close { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 0 0 0.5rem; }
    .tray-close:hover { color: var(--text); }
    #trayItems {
      overflow-y: auto; flex: 1; padding: 0.25rem 0;
    }
    .tray-item {
      display: flex; align-items: center; gap: 0.65rem;
      padding: 0.4rem 1rem; border-bottom: 1px solid var(--border);
      font-size: 0.78rem;
    }
    .tray-item:last-child { border-bottom: none; }
    .tray-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
    .tray-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 80px; }
    .tray-item-pct { font-size: 0.7rem; color: var(--muted); }
    .tray-bar-wrap { width: 80px; height: 3px; background: var(--border); }
    .tray-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.15s; }
    .tray-item-done { font-size: 0.7rem; color: #2a8a55; }
    .tray-item-error { font-size: 0.7rem; color: var(--red); }

    /* Manage list */
    .manage-list { display: flex; flex-direction: column; gap: 0.4rem; }
    .people-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
    .people-chip { font-size: 0.65rem; padding: 0.15rem 0.45rem; background: var(--surface2); border: 1px solid var(--border2); color: var(--muted); border-radius: 2px; white-space: nowrap; }
    .btn-tag { font-size: 0.7rem; padding: 0.25rem 0.55rem; background: transparent; border: 1px solid var(--border2); color: var(--muted); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .btn-tag:hover { border-color: var(--accent); color: var(--accent); }
    /* Tag modal */
    .tag-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
    .tag-modal-card { background: var(--surface); display: flex; max-width: 860px; width: 100%; max-height: 90vh; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
    .tag-modal-img { flex: 1.4; background: #111; display: flex; align-items: center; justify-content: center; min-width: 0; position: relative; }
    .tag-modal-img img { width: 100%; height: 100%; object-fit: contain; max-height: 90vh; display: block; }
    .tag-modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); border: none; color: #fff; font-size: 1.4rem; width: 2.4rem; height: 3.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; user-select: none; }
    .tag-modal-nav:hover { background: rgba(0,0,0,0.7); }
    .tag-modal-nav:disabled { opacity: 0.2; cursor: default; }
    .tag-modal-nav-prev { left: 0; }
    .tag-modal-nav-next { right: 0; }
    .tag-modal-counter { font-size: 0.68rem; color: var(--muted); text-align: right; }
    .tag-modal-panel { width: 260px; flex-shrink: 0; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
    .tag-modal-heading { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
    .tag-modal-info { font-size: 0.82rem; color: var(--text); font-weight: 500; }
    .tag-modal-info-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
    .tag-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 2rem; }
    .tag-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; padding: 0.25rem 0.55rem; background: var(--surface2); border: 1px solid var(--border2); color: var(--text); }
    .tag-chip button { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 0.9rem; line-height: 1; padding: 0; }
    .tag-chip button:hover { color: var(--red); }
    .tag-modal-actions { display: flex; gap: 0.5rem; margin-top: auto; }
    .tag-modal-actions .btn-primary { flex: 1; }
    .manage-item {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.6rem 0.75rem; background: var(--bg);
      border: 1px solid var(--border); font-size: 0.82rem;
    }
    .manage-item-thumb {
      width: 56px; height: 32px; object-fit: cover;
      border: 1px solid var(--border2); flex-shrink: 0;
    }
    .manage-item-photo {
      width: 40px; height: 40px; object-fit: cover;
      border: 1px solid var(--border2); flex-shrink: 0;
    }
    .manage-item-info { flex: 1; min-width: 0; }
    .manage-item-title { color: var(--text); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .manage-item-sub { color: var(--muted); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.15rem; }
    .manage-item-meta { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }

    /* ── MANAGE PHOTOS FILTERS ───────────────────────────────────────── */
    /* ── EVENT TILES ─────────────────────────────────────────────────── */
    .event-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    @media (max-width: 700px) { .event-tile-grid { grid-template-columns: repeat(2, 1fr); } }
    /* Admin gallery tiles — scoped to .admin-section to avoid conflict with public .event-tile */
    .admin-section .event-tile {
      cursor: pointer; border: 1px solid var(--border); background: var(--bg);
      aspect-ratio: unset; overflow: visible; position: static;
      transition: border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column;
    }
    .admin-section .event-tile:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,0.08); transform: none; }
    .admin-section .event-tile .et-cover { width: 100%; height: 140px; background: var(--surface2); overflow: hidden; flex-shrink: 0; }
    .admin-section .event-tile .et-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: none; }
    .admin-section .event-tile .et-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--faint); }
    .admin-section .event-tile .et-body { padding: 0.65rem 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; flex-shrink: 0; }
    .admin-section .event-tile .et-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.3; }
    .admin-section .event-tile .et-meta { font-size: 0.68rem; color: var(--muted); }
    .admin-section .event-tile .et-badges { display: flex; gap: 0.3rem; margin-top: 0.25rem; flex-wrap: wrap; }
    /* ── DETAIL BREADCRUMB ───────────────────────────────────────────── */
    .mp-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
    .mp-back { background: none; border: none; cursor: pointer; color: var(--accent); font-size: 0.82rem; font-family: 'Inter', sans-serif; padding: 0; display: flex; align-items: center; gap: 0.3rem; }
    .mp-back:hover { text-decoration: underline; }
    .mp-breadcrumb-sep { color: var(--faint); font-size: 0.75rem; }
    .mp-breadcrumb-current { font-size: 0.82rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* ── TOOLBAR ─────────────────────────────────────────────────────── */
    .mp-toolbar {
      display: flex; gap: 0.6rem; margin-bottom: 1rem;
      flex-wrap: wrap; align-items: center;
    }
    .mp-toolbar .form-select { width: auto; font-size: 0.78rem; padding: 0.4rem 0.65rem; }
    .mp-count { font-size: 0.75rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

    /* ── PAGINATION ──────────────────────────────────────────────────── */
    .pagination {
      display: flex; align-items: center; gap: 0.35rem;
      margin-top: 1rem; flex-wrap: wrap;
    }
    .page-btn {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-family: 'Inter', sans-serif;
      font-size: 0.75rem; padding: 0.3rem 0.65rem;
      cursor: pointer; transition: all 0.15s; min-width: 32px;
    }
    .page-btn:hover:not(:disabled) { border-color: var(--border2); color: var(--text); }
    .page-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
    .page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .btn-secondary {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-size: 0.7rem; padding: 0.25rem 0.6rem;
      cursor: pointer; font-family: 'Inter', sans-serif;
      transition: all 0.15s; flex-shrink: 0;
    }
    .btn-secondary:hover { border-color: var(--border2); color: var(--text); }
    .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
    .btn-rotate {
      font-size: 1rem; padding: 0.2rem 0.45rem; background: transparent;
      border: 1px solid var(--border2); color: var(--muted); cursor: pointer;
      flex-shrink: 0; line-height: 1; transition: border-color 0.15s, color 0.15s;
    }
    .btn-rotate:hover { border-color: var(--accent); color: var(--accent); }
    .btn-rotate:disabled { opacity: 0.4; cursor: default; }
    .btn-delete {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-size: 0.7rem; padding: 0.25rem 0.6rem;
      cursor: pointer; font-family: 'Inter', sans-serif;
      transition: all 0.15s; flex-shrink: 0;
    }
    .btn-delete:hover { border-color: var(--red); color: var(--red); }
    .btn-edit {
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-size: 0.7rem; padding: 0.25rem 0.6rem;
      cursor: pointer; font-family: 'Inter', sans-serif;
      transition: all 0.15s; flex-shrink: 0;
    }
    .btn-edit:hover { border-color: var(--accent); color: var(--accent); }

    /* ── GALLERY GROUPS ─────────────────────────────────────────────── */
    .gallery-group { margin-bottom: 2.5rem; }
    .gallery-group-header {
      display: flex; align-items: baseline; gap: 0.75rem;
      margin-bottom: 0.85rem;
      padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
    }
    .gallery-group-title {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic; font-size: 1.2rem; color: var(--text);
    }
    .gallery-group-count { font-size: 0.72rem; color: var(--muted); }

    /* ── EVENT TILES ─────────────────────────────────────────────────── */
    .event-tile {
      position: relative; aspect-ratio: 4/3; overflow: hidden;
      background: var(--surface2); cursor: pointer;
      border: 1px solid var(--border);
      transition: transform 0.2s, border-color 0.2s;
    }
    .event-tile:hover { transform: translateY(-3px); border-color: var(--border2); }
    .event-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
    .event-tile:hover img { transform: scale(1.06); }
    .event-tile-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
      display: flex; flex-direction: column; justify-content: flex-end;
      padding: 1rem 1.1rem 1.1rem;
    }
    .event-tile-name {
      font-size: 0.9rem; font-weight: 600; color: #fff;
      margin-bottom: 0.2rem; line-height: 1.3;
    }
    .event-tile-count { font-size: 0.7rem; color: rgba(255,255,255,0.65); }
    .event-tile-empty {
      position: absolute; inset: 0; display: flex;
      align-items: center; justify-content: center;
      color: rgba(255,255,255,0.3); font-size: 2rem;
    }

    .gallery-back {
      display: inline-flex; align-items: center; gap: 0.4rem;
      background: none; border: 1px solid var(--border);
      color: var(--muted); font-family: 'Inter', sans-serif;
      font-size: 0.8rem; padding: 0.4rem 0.85rem;
      cursor: pointer; transition: all 0.15s; margin-bottom: 1.75rem;
    }
    .gallery-back:hover { color: var(--text); border-color: var(--border2); }
    .gallery-search-bar {
      display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem;
    }
    .gallery-search-input {
      flex: 1; max-width: 320px; padding: 0.55rem 0.85rem;
      border: 1px solid var(--border2); background: var(--bg); color: var(--text);
      font-family: 'Inter', sans-serif; font-size: 0.88rem;
    }
    .gallery-search-input:focus { outline: none; border-color: var(--accent); }
    .gallery-search-clear {
      background: none; border: 1px solid var(--border); color: var(--muted);
      font-family: 'Inter', sans-serif; font-size: 0.8rem; padding: 0.4rem 0.75rem;
      cursor: pointer; transition: all 0.15s;
    }
    .gallery-search-clear:hover { color: var(--text); border-color: var(--border2); }
    .jersey-badge {
      display: inline-flex; align-items: center;
      font-size: 0.7rem; font-weight: 700; color: var(--accent);
      padding: 0.05rem 0.35rem; margin-left: 0.4rem;
      border: 1px solid transparent; border-radius: 3px;
      cursor: pointer; transition: all 0.12s;
    }
    .jersey-badge:hover { border-color: var(--accent); background: rgba(184,148,82,0.08); }
    .jersey-badge.empty { opacity: 0.35; font-weight: 400; font-size: 0.65rem; }
    .jersey-input {
      width: 56px; padding: 0.2rem 0.4rem; margin-left: 0.4rem;
      border: 1px solid var(--accent); background: var(--bg); color: var(--text);
      font-family: 'Inter', sans-serif; font-size: 0.82rem;
    }
    .jersey-input:focus { outline: none; }
    .team-chip {
      display: inline-flex; align-items: center; gap: 0.25rem;
      font-size: 0.7rem; background: var(--surface2); border: 1px solid var(--border2);
      padding: 0.15rem 0.45rem; border-radius: 3px;
    }
    .team-chip-remove {
      background: none; border: none; cursor: pointer; color: var(--muted);
      padding: 0; font-size: 0.85rem; line-height: 1; display: flex; align-items: center;
    }
    .team-chip-remove:hover { color: var(--red); }
    .add-team-row { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.2rem; }
    .add-team-input {
      font-size: 0.75rem; padding: 0.2rem 0.4rem; width: 150px;
      border: 1px solid var(--border2); background: var(--bg); color: var(--text);
      font-family: 'Inter', sans-serif;
    }
    .add-team-input:focus { outline: none; border-color: var(--accent); }
    .member-photo-placeholder {
      width: 48px; height: 48px; background: var(--surface2); border: 1px dashed var(--border2);
      border-radius: 2px; display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; flex-shrink: 0;
    }
    .rescan-event-list {
      max-height: 260px; overflow-y: auto;
      border: 1px solid var(--border); margin-bottom: 0.75rem;
    }
    .rescan-event-item {
      display: flex; align-items: center; gap: 0.6rem;
      padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
      font-size: 0.84rem; cursor: pointer;
    }
    .rescan-event-item:last-child { border-bottom: none; }
    .rescan-event-item:hover { background: var(--surface2); }
    .rescan-progress-bar {
      height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 0.4rem;
    }
    .rescan-progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; }

    /* ── EMPTY STATE ─────────────────────────────────────────────────── */
    .empty {
      text-align: center; padding: 3rem 1rem;
      color: var(--muted); font-size: 0.88rem;
      border: 1px dashed var(--border);
    }
    .empty-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.4; }

    /* ── TOAST ───────────────────────────────────────────────────────── */
    .toast {
      position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
      padding: 0.75rem 1.2rem; background: var(--surface);
      border: 1px solid var(--border2); font-size: 0.82rem;
      color: var(--text); animation: toastIn 0.25s ease;
    }
    .toast-success { border-color: #4a9e6a; }
    .toast-error   { border-color: var(--red); color: var(--red); }
    @keyframes toastIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
    @keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
    .shake { animation: shake 0.4s ease; }

    /* ── ABOUT ───────────────────────────────────────────────────────── */
    .about-wrap { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
    .about-heading {
      text-align: center; font-family: 'Dancing Script', cursive;
      font-size: 2.8rem; font-weight: 700; margin-bottom: 2.5rem;
      background: linear-gradient(135deg, #b8943a, #e8c86a, #c9a84c);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .about-players { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
    @media (max-width: 600px) { .about-players { grid-template-columns: 1fr; } }
    .about-player { text-align: center; }
    .about-player img {
      width: 100%; max-width: 340px; aspect-ratio: 3/4;
      object-fit: cover; object-position: top;
      border: 3px solid var(--border2);
    }
    .about-player-name {
      margin-top: 0.75rem; font-size: 1.1rem; font-weight: 600;
      color: var(--accent); letter-spacing: 0.05em;
    }
    .about-player-num { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
    .about-story {
      border-top: 1px solid var(--border); padding-top: 2rem;
      max-width: 680px; margin: 0 auto;
    }
    .about-story p { line-height: 1.8; color: var(--text); margin-bottom: 1.2rem; font-size: 0.95rem; }

    /* ── CONTACT ─────────────────────────────────────────────────────── */
    .contact-wrap { max-width: 600px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
    .contact-heading {
      text-align: center; font-family: 'Dancing Script', cursive;
      font-size: 2.8rem; font-weight: 700; margin-bottom: 0.5rem;
      background: linear-gradient(135deg, #b8943a, #e8c86a, #c9a84c);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }
    .contact-sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
    .contact-form { display: flex; flex-direction: column; gap: 1rem; }
    .contact-form input, .contact-form textarea {
      background: var(--surface); border: 1px solid var(--border2);
      color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
      padding: 0.75rem 1rem; outline: none; width: 100%;
      transition: border-color 0.15s;
    }
    .contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
    .contact-form textarea { resize: vertical; min-height: 140px; }
    .contact-submit {
      background: var(--accent); color: #000; border: none;
      font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem;
      padding: 0.8rem 2rem; cursor: pointer; transition: background 0.15s; align-self: flex-start;
    }
    .contact-submit:hover { background: var(--accent-h); }
    .contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .contact-success { text-align: center; color: var(--accent); font-size: 0.9rem; margin-top: 1rem; display: none; }

    /* ── GALLERY SELECT MODE ─────────────────────────────────────────── */
    .photo-card.photo-selected { outline: 3px solid var(--accent); }
    .photo-check-box {
      position: absolute; top: 8px; left: 8px; z-index: 2;
      width: 22px; height: 22px; border: 2px solid #fff;
      background: rgba(0,0,0,0.35); border-radius: 4px;
      display: flex; align-items: center; justify-content: center;
      pointer-events: none;
    }
    .photo-card.photo-selected .photo-check-box {
      background: var(--accent); border-color: var(--accent);
    }
    .photo-check-box svg { display: none; }
    .photo-card.photo-selected .photo-check-box svg { display: block; }
    .photo-card.select-mode { cursor: pointer; }
    .tb-btn {
      background: var(--surface); border: 1px solid var(--border2);
      color: var(--muted); font-family: 'Inter', sans-serif; font-size: 0.75rem;
      font-weight: 500; padding: 0.3rem 0.7rem; cursor: pointer; transition: all 0.15s;
      white-space: nowrap;
    }
    .tb-btn:hover { border-color: var(--accent); color: var(--accent); }
    .tb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .tb-btn-gold { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
    .tb-btn-gold:hover { background: var(--accent-h); border-color: var(--accent-h); color: #000; }

    /* ── GALLERY PAGINATION ──────────────────────────────────────────── */
    .gallery-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
    }
    .per-page-select {
      background: var(--surface); border: 1px solid var(--border2);
      color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.78rem;
      padding: 0.25rem 0.5rem; cursor: pointer;
    }
    .pager { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: center; }
    .pager-btn {
      background: var(--surface); border: 1px solid var(--border2);
      color: var(--muted); font-family: 'Inter', sans-serif; font-size: 0.78rem;
      padding: 0.3rem 0.65rem; cursor: pointer; transition: all 0.15s;
    }
    .pager-btn:hover { border-color: var(--accent); color: var(--accent); }
    .pager-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

    /* ── LOADING ─────────────────────────────────────────────────────── */
    .loading { text-align: center; padding: 4rem; color: var(--muted); font-size: 0.85rem; }
    .loading-spinner { width: 32px; height: 32px; border: 3px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 0.75rem; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── FOOTER ──────────────────────────────────────────────────────── */
    footer {
      border-top: 1px solid var(--border); padding: 1.5rem;
      text-align: center; font-size: 0.72rem; color: var(--faint);
      letter-spacing: 0.1em;
    }
    .footer-social { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.9rem; }
    .footer-social a { color: var(--faint); transition: color 0.15s; display: flex; align-items: center; }
    .footer-social a:hover { color: var(--accent); }
