:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --dark: #111827;
    --green: #25D366;
    --shadow: 0 14px 35px rgba(17, 24, 39, .08);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229,231,235,.9);
}
.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #111827, #f97316);
    color: #fff;
    font-weight: 900;
    letter-spacing: -.5px;
}
.brand strong { display: block; font-size: 19px; letter-spacing: -.3px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.top-nav { display: flex; align-items: center; gap: 10px; }
.top-nav a {
    text-decoration: none;
    padding: 10px 12px;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
}
.top-nav a:hover, .top-nav .admin-link { background: #fff3e8; color: var(--orange-dark); }

.hero {
    padding: 54px 0 30px;
}
.hero-box {
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.24), transparent 40%),
        linear-gradient(135deg, #111827 0%, #1f2937 55%, #3b2417 100%);
    color: #fff;
    padding: 44px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 30px;
    align-items: center;
    overflow: hidden;
}
.badge {
    display: inline-flex;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}
.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -1.6px;
}
.hero p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    max-width: 700px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 900;
    font-size: 14px;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-light { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.hero-card {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    padding: 24px;
    border-radius: 26px;
}
.hero-card strong { display: block; font-size: 38px; line-height: 1; }
.hero-card span { display: block; color: rgba(255,255,255,.78); margin-top: 8px; }

.filter-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 22px;
}
.search-row {
    display: grid;
    grid-template-columns: 1fr 240px auto;
    gap: 12px;
}
.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.textarea { min-height: 120px; resize: vertical; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin: 26px 0 16px;
}
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.7px; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 46px;
}
.video-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    min-height: 100%;
}
.video-thumb {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 25% 20%, rgba(249,115,22,.25), transparent 35%),
        linear-gradient(135deg, #111827, #374151);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}
.play-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.18);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 900;
}
.featured-tag, .cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--orange);
    color: #fff;
    padding: 6px 9px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}
.cat-tag { left: auto; right: 12px; background: rgba(17,24,39,.84); }
.video-body { padding: 18px; display:flex; flex-direction:column; flex: 1; }
.video-body h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.4px; }
.video-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.video-meta { margin-top: auto; color: #9ca3af; font-size: 13px; display:flex; justify-content:space-between; gap:8px; }
.empty-state {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
    color: var(--muted);
    grid-column: 1 / -1;
}

.detail-wrap {
    padding: 34px 0 58px;
    display: grid;
    grid-template-columns: minmax(0, 760px) 330px;
    gap: 22px;
    align-items: start;
}
.detail-main, .sidebar-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.detail-main { overflow: hidden; }
.detail-content { padding: 26px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.breadcrumb a { color: var(--orange-dark); text-decoration: none; font-weight: 800; }
.detail-content h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.06; letter-spacing: -1.3px; }
.lead { font-size: 18px; color: #4b5563; }
.content-text { color: #374151; font-size: 16px; }
.content-text h2, .content-text h3 { letter-spacing: -.5px; }
.instagram-area { padding: 20px; background: #f9fafb; border-top: 1px solid var(--line); }
.instagram-embed-box { width: 100%; display: flex; justify-content: center; }
.sidebar-card { padding: 20px; margin-bottom: 16px; }
.sidebar-card h3 { margin: 0 0 10px; }
.side-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.side-list a { text-decoration:none; font-weight:800; color:#374151; }
.side-list a:hover { color: var(--orange-dark); }
.ig-button { width: 100%; margin-top: 10px; }

.site-footer {
    background: #111827;
    color: #fff;
    padding: 36px 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.site-footer p { color: rgba(255,255,255,.72); margin: 8px 0 0; }
.site-footer a { color: #fff; }

.cm-whatsapp-wrapper {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cm-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 17px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,0,0,0.24);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.cm-whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.30); }
.cm-whatsapp-contact { background: var(--green); }
.cm-whatsapp-share { background: var(--dark); }
.cm-icon { width: 21px; height: 21px; display: inline-flex; align-items:center; justify-content:center; }
.cm-floating-phone {
    position: fixed;
    left: 18px;
    bottom: 22px;
    z-index: 99998;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    padding: 11px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(0,0,0,0.24);
}
.cm-floating-phone a { color: #fff; text-decoration:none; }

.admin-layout { min-height: 100vh; background: var(--bg); }
.admin-shell { width: min(1100px, calc(100% - 30px)); margin: 0 auto; padding: 28px 0 60px; }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
}
.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.admin-menu { display:flex; flex-wrap:wrap; gap:10px; }
.admin-menu a { padding:10px 13px; border-radius:999px; text-decoration:none; background:#fff3e8; color:var(--orange-dark); font-weight:900; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-full { grid-column: 1 / -1; }
.label { display:block; font-weight:900; margin-bottom:7px; }
.help { color: var(--muted); font-size:13px; margin-top:6px; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.table th { font-size:13px; color:var(--muted); }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.notice { padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-weight:800; }
.notice.success { background:#ecfdf5; color:#047857; }
.notice.error { background:#fef2f2; color:#b91c1c; }
.login-box { width:min(430px, calc(100% - 30px)); margin: 60px auto; }

@media (max-width: 980px) {
    .hero-box, .detail-wrap, .footer-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .search-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-inner { height: auto; padding: 14px 0; align-items:flex-start; }
    .top-nav { display:none; }
    .hero { padding-top: 24px; }
    .hero-box { padding: 26px; border-radius: 24px; }
    .video-grid { grid-template-columns: 1fr; }
    .section-head { display:block; }
    .detail-content { padding: 20px; }
    .instagram-area { padding: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .cm-whatsapp-wrapper { right: 12px; bottom: 16px; gap: 8px; }
    .cm-whatsapp-btn { font-size: 13px; padding: 11px 14px; }
    .cm-floating-phone { display:none; }
}
