@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── VARIABLEN ─────────────────────────────────────────────────────────────── */
:root {
  --accent:   #c8860a;
  --accent-d: #a06808;
  --dark:     #1a1612;
  --text:     #2d2419;
  --muted:    #7a6e60;
  --border:   #e0dbd2;
  --bg:       #faf8f5;
  --card:     #ffffff;
  --green:    #2e7d32;
  --red:      #c62828;
  --blue:     #1565c0;
  --yellow:   #b45309;
  --r:        6px;
  --shadow:   0 2px 14px rgba(0,0,0,.08);
  --font:     'Source Sans 3', sans-serif;
  --serif:    'Playfair Display', serif;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); cursor: pointer; }

/* ── TOPBAR ────────────────────────────────────────────────────────────────── */
.topbar { background: var(--dark); color: rgba(255,255,255,.6); font-size: .78rem; padding: 9px 24px; text-align: center; letter-spacing: .04em; }
.topbar a { color: var(--accent); font-weight: 600; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.nav-logo img { height: 42px; }
.nav-links { list-style: none; display: flex; gap: 26px; }
.nav-links a { font-size: .83rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text); transition: color .2s; }
.nav-links a:hover, .nav-links .active { color: var(--accent); text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff; padding: 9px 20px; border-radius: var(--r); font-size: .82rem; font-weight: 700; letter-spacing: .04em; transition: background .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-d); text-decoration: none; color: #fff; }

/* ── CONTAINER ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(150deg, #1a1612 0%, #2c2217 60%, #1a1612 100%); color: #fff; padding: 80px 24px 72px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 44px; background: var(--bg); clip-path: ellipse(58% 100% at 50% 100%); }
.hero-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.hero-title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; margin-bottom: 18px; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto; line-height: 1.75; }

/* ── FILTER BAR ────────────────────────────────────────────────────────────── */
.filter-bar { background: #fff; border-bottom: 1px solid var(--border); }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 18px 0; }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fg label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.fg select, .fg input[type=text] {
  padding: 7px 11px; border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: .84rem; font-family: var(--font); background: #fff; color: var(--text);
  min-width: 130px; transition: border-color .15s;
}
.fg select:focus, .fg input[type=text]:focus { outline: none; border-color: var(--accent); }
.filter-btns { display: flex; gap: 8px; align-items: flex-end; margin-left: auto; }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--r); font-size: .88rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all .18s; font-family: var(--font); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover  { background: var(--accent-d); color: #fff; }
.btn-outline  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover  { border-color: var(--accent); color: var(--accent); }
.btn-danger   { background: var(--red); color: #fff; }
.btn-danger:hover   { background: #b71c1c; color: #fff; }
.btn-ghost    { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover    { color: var(--text); border-color: #999; }
.btn-success  { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; font-weight: 700; }

/* ── SECTION ───────────────────────────────────────────────────────────────── */
.section { padding: 48px 0 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title { font-family: var(--serif); font-size: 1.6rem; }
.section-title span { color: var(--accent); font-style: italic; }
.count-label { font-size: .82rem; color: var(--muted); }

/* ── DOG CARD ──────────────────────────────────────────────────────────────── */
.dogs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.dog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column; }
.dog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.dog-card-img { aspect-ratio: 4/5; background: #f0ece4; overflow: hidden; position: relative; flex-shrink: 0; }
.dog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dog-card:hover .dog-card-img img { transform: scale(1.04); }
.dog-card-img .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #d8d0c4; }
.dog-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.dog-card-name { font-family: var(--serif); font-size: 1.3rem; color: var(--dark); }
.dog-card-meta { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.dog-card .tags { margin: 2px 0 4px; }
.dog-card .btn  { margin-top: auto; justify-content: center; }

/* ── STATUS BADGES ─────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-foster  { background: #fff8e1; color: var(--yellow); border: 1px solid #f0d070; }
.badge-shelter { background: #e8f5e9; color: var(--green);  border: 1px solid #a5d6a7; }
.badge-romania { background: #fce4ec; color: #c2185b;       border: 1px solid #f48fb1; }
.badge-adopted { background: #e3f2fd; color: var(--blue);   border: 1px solid #90caf9; }
.badge-online  { background: #e8f5e9; color: var(--green);  border: 1px solid #a5d6a7; }
.badge-offline { background: #fce4ec; color: var(--red);    border: 1px solid #f48fb1; }
.badge-admin   { background: #ede7f6; color: #512da8;       border: 1px solid #ce93d8; }
.badge-staff   { background: #fff8e1; color: var(--yellow); border: 1px solid #f0d070; }
.badge-referent{ background: #e3f2fd; color: var(--blue);   border: 1px solid #90caf9; }

.badge-on-img { position: absolute; top: 10px; left: 10px; }

/* ── TAGS ──────────────────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 3px 9px; border-radius: 100px; font-size: .72rem; font-weight: 600; border: 1px solid var(--border); background: #f5f0e8; color: #5a4e3e; }
.tag-green { background: #f0faf4; border-color: #a3d9b5; color: var(--green); }
.tag-red   { background: #fff5f5; border-color: #fca5a5; color: var(--red); }
.tag-blue  { background: #e3f2fd; border-color: #90caf9; color: var(--blue); }

/* ── PAGINATION ────────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 36px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r); font-size: .88rem; font-weight: 600; border: 1.5px solid var(--border); color: var(--text); transition: all .15s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { border: none; color: var(--muted); }

/* ── BREADCRUMB ────────────────────────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb span { margin: 0 5px; }

/* ── DETAIL PAGE ───────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 30px 0 80px; align-items: start; }
.gallery-sticky { position: sticky; top: 82px; }
.gallery-with-thumbs { display: flex; gap: 10px; align-items: flex-start; }
.gallery-main { aspect-ratio: 4/5; background: #f0ece4; border-radius: var(--r); overflow: hidden; cursor: zoom-in; flex: 1; min-width: 0; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Thumbs-Spalte: flex-column, Scroll-Bereich wächst, Video klebt unten */
.gallery-thumbs-vertical { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; width: 76px; align-self: stretch; }
.gallery-thumbs-scroll { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; }
.gallery-thumbs-scroll::-webkit-scrollbar { width: 3px; }
.gallery-thumbs-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumbs-videos { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; margin-top: auto; padding-top: 6px; border-top: 2px solid var(--border); }

.gallery-thumb { width: 72px; height: 72px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; background: #f0ece4; transition: border-color .15s; position: relative; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb:hover:not(.active) { border-color: rgba(200,134,10,.5); }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; font-size: 1.4rem; pointer-events: none; }

@media (max-width: 680px) {
  .gallery-with-thumbs { flex-direction: column; }
  .gallery-thumbs-vertical { flex-direction: row; width: 100%; height: 80px; align-self: auto; overflow-x: auto; overflow-y: visible; padding-bottom: 4px; }
  .gallery-thumbs-scroll { flex-direction: row; overflow-y: visible; overflow-x: auto; flex: none; gap: 6px; }
  .gallery-thumbs-scroll::-webkit-scrollbar { display: none; }
  .gallery-thumbs-videos { flex-direction: row; margin-top: 0; padding-top: 0; border-top: none; border-left: 2px solid var(--border); padding-left: 6px; flex-shrink: 0; }
  .gallery-thumb { width: 80px; height: 80px; flex-shrink: 0; }
  .gallery-main { aspect-ratio: 4/3; }
}

.detail-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 3px; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h1.detail-name { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; margin-bottom: 8px; }
.detail-sub  { font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.detail-tags { margin-bottom: 24px; }
.detail-block { margin-bottom: 26px; }
.detail-block-title { font-family: var(--serif); font-size: 1.05rem; color: var(--dark); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: 12px; display: inline-block; }
.detail-text { font-size: .94rem; line-height: 1.85; color: #3d3326; white-space: pre-line; }
.steckbrief { width: 100%; border-collapse: collapse; font-size: .88rem; }
.steckbrief tr { border-bottom: 1px solid #ece7df; }
.steckbrief td { padding: 9px 0; vertical-align: top; }
.steckbrief td:first-child { font-weight: 700; color: var(--dark); width: 48%; }
.steckbrief td:last-child { color: #5a4e3e; }
.compat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.compat-chip { display: flex; align-items: center; gap: 5px; font-size: .83rem; padding: 5px 12px; border-radius: var(--r); border: 1px solid var(--border); background: #faf8f5; }
.detail-cta { display: flex; flex-direction: column; gap: 11px; margin-top: 28px; }
.legal-note { font-size: .76rem; color: var(--muted); line-height: 1.65; }

/* ── LIGHTBOX ──────────────────────────────────────────────────────────────── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.35); align-items: center; justify-content: center; padding: 20px; }
#lightbox.open { display: flex; }
.lb-inner { position: relative; display: inline-flex; align-items: center; justify-content: center; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; display: block; }
.lb-btn { background: rgba(0,0,0,.45); border: none; color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-btn:hover { background: rgba(0,0,0,.7); }
#lb-close { position: absolute; top: -16px; right: -16px; width: 34px; height: 34px; font-size: .95rem; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 1.5rem; }
#lb-prev { left: -20px; }
#lb-next { right: -20px; }

/* ── SIMILAR ───────────────────────────────────────────────────────────────── */
.similar-section { background: #f0ece4; padding: 56px 0; }
.similar-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 28px; }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 48px 24px 32px; text-align: center; }
.footer-logo { height: 44px; margin: 0 auto 16px; opacity: .88; }
.footer-slogan { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.02rem; margin-bottom: 8px; }
.footer-bank { font-size: .82rem; line-height: 1.8; }
.footer-bank a { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 18px 0 8px; }
.footer-links a { color: rgba(255,255,255,.4); font-size: .78rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { font-size: .72rem; margin-top: 8px; }

/* ── ALERTS ────────────────────────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--r); font-size: .88rem; margin-bottom: 18px; }
.alert-success { background: #e8f5e9; color: var(--green); border: 1px solid #a5d6a7; }
.alert-error   { background: #fce4ec; color: var(--red);   border: 1px solid #f48fb1; }
.alert ul { margin: 4px 0 0 16px; }

/* ── TOAST NOTIFICATION ───────────────────────────────────────────────────── */
.toast { position: fixed; bottom: 28px; right: 28px; z-index: 9999; padding: 14px 22px; border-radius: var(--r); font-size: .92rem; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: flex; align-items: center; gap: 10px; animation: toast-in .3s ease; }
.toast-success { background: var(--green); color: #fff; }
.toast-error   { background: var(--red);   color: #fff; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }
.toast.hiding { animation: toast-out .4s ease forwards; }

/* ── ADMIN LAYOUT ──────────────────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 230px; background: var(--dark); color: rgba(255,255,255,.75); flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo { padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-logo img { height: 32px; }
.sidebar-nav { flex: 1; padding: 14px 0; }
.sidebar-nav .sec-label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 16px 18px 5px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: .86rem; color: rgba(255,255,255,.65); transition: all .15s; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar-nav a.active { background: rgba(200,134,10,.15); color: var(--accent); border-left: 3px solid var(--accent); padding-left: 15px; }
.sidebar-footer { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-footer .u-name { color: #fff; font-weight: 600; font-size: .88rem; }
.sidebar-footer .u-role { color: rgba(255,255,255,.4); font-size: .76rem; margin-top: 2px; }
.sidebar-footer a { color: rgba(255,255,255,.4); font-size: .78rem; margin-top: 10px; display: block; }
.sidebar-footer a:hover { color: var(--accent); text-decoration: none; }
.admin-main { flex: 1; min-width: 0; padding: 32px 36px; }
.admin-title { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 4px; }
.admin-subtitle { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }

/* ── ADMIN PANELS ──────────────────────────────────────────────────────────── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; margin-bottom: 22px; }
.panel-title { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 18px 16px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 5px; }

/* ── ADMIN TABLE ───────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; }
.tbl th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #f0ece4; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #faf8f5; }
.tbl-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.tbl-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; display: block; }
.tbl-thumb-empty { width: 46px; height: 46px; background: #f0ece4; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* ── ADMIN FORMS ───────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .81rem; font-weight: 700; color: var(--dark); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field input[type=date], .field select, .field textarea {
  padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: .9rem; font-family: var(--font); background: #fff; color: var(--text);
  transition: border-color .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: .74rem; color: var(--muted); }
.check-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.check-label { display: flex; align-items: center; gap: 7px; font-size: .88rem; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ── IMAGE UPLOAD ──────────────────────────────────────────────────────────── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.img-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #f0ece4; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: .75rem; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.img-thumb-del:hover { background: var(--red); }
.img-thumb.marked { outline: 3px solid var(--red); }
.file-input-area { border: 2px dashed var(--border); border-radius: var(--r); padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s; margin-top: 6px; }
.file-input-area:hover { border-color: var(--accent); }
.file-input-area input { display: none; }

/* ── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-icon { font-size: 2.8rem; opacity: .3; margin-bottom: 10px; }

/* ── LOGIN PAGE ────────────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; background: var(--dark); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: #fff; border-radius: 10px; padding: 38px 38px 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-logo { height: 42px; margin: 0 auto 26px; display: block; }
.login-title { font-family: var(--serif); font-size: 1.45rem; text-align: center; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: .86rem; margin-bottom: 26px; }
.login-box .field { margin-bottom: 14px; }
.login-submit { width: 100%; padding: 13px; font-size: .98rem; font-weight: 700; background: var(--accent); color: #fff; border: none; border-radius: var(--r); cursor: pointer; font-family: var(--font); transition: background .2s; margin-top: 6px; }
.login-submit:hover { background: var(--accent-d); }
.login-back { display: block; text-align: center; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.login-back a { color: var(--muted); text-decoration: underline; }

/* ── VIDEOS ────────────────────────────────────────────────────────────────── */
.video-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.video-thumb { position: relative; border-radius: var(--r); overflow: hidden; background: #111; aspect-ratio: 16/9; cursor: pointer; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── VIDEO OVERLAY ──────────────────────────────────────────────────────────── */
#video-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(0,0,0,.95) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
#video-overlay.open { display: flex !important; }
#video-overlay-player {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: #000;
  display: block;
}
#video-overlay-close {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10000 !important;
  background: rgba(255,255,255,.25) !important;
  border: none !important;
  color: #fff !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-sticky { position: static; }
  .sidebar { width: 200px; }
  .admin-main { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .sidebar { position: fixed; left: -230px; transition: left .25s; z-index: 200; }
  .sidebar.open { left: 0; }
  .dogs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .filter-form { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
  .filter-btns { flex-shrink: 0; }
  .admin-main { padding: 16px; }
}
@media (max-width: 400px) {
  .dogs-grid { grid-template-columns: 1fr; }
}
