* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #2d1606;
    background: #f7f1e8;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.top-bar {
    background: linear-gradient(90deg, #792114, #3d0904);
    color: #f7d9ba;
    text-align: center;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
}
.site-header {
    background: #fff;
    border-bottom: 1px solid #ead9c0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}
.logo {
    font-size: 34px;
    font-weight: 800;
    color: #ba7b14;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { font-size: 24px; }
.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    font-size: 20px;
    color: #946313;
}
.main-nav a:hover { color: #6f250e; }
.translate-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d1b10;
    font-size: 15px;
    font-weight: 800;
}
.translate-select {
    border: 1px solid #d8b97a;
    border-radius: 999px;
    padding: 8px 32px 8px 12px;
    background: #fff8ea;
    color: #7d1b10;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
}
.translate-select:hover,
.translate-select:focus {
    background: #ffefc4;
    color: #6f250e;
    outline: none;
}
.hero-section { padding: 30px 0 10px; }
.hero-box {
    background: radial-gradient(circle at 15% 85%, #e8a04b, transparent 18%),
                radial-gradient(circle at 85% 15%, #d1843a, transparent 14%),
                linear-gradient(135deg, #781011, #97171b 55%, #973114);
    min-height: 370px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(91, 24, 10, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fbe1a4;
}
.hero-content { padding: 30px; }
.hero-logo {
    font-size: 64px;
    font-weight: 900;
    color: #f2bc52;
    text-shadow: 0 4px 10px rgba(0,0,0,0.22);
}
.hero-box h1 {
    margin: 8px 0 22px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
}
.btn-outline {
    color: #fff3d3;
    border: 2px solid #d8ac55;
    background: rgba(255,255,255,0.06);
}
.btn-solid {
    background: linear-gradient(180deg, #ffcb57, #f1a81f);
    color: #6a1d0e;
    border: 0;
}
.section { padding: 30px 0; }
.section h2, .section h1 {
    text-align: center;
    color: #7d1b10;
    margin: 0 0 10px;
}
.section-subtitle {
    text-align: center;
    color: #5f4935;
    margin-bottom: 20px;
}
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.zodiac-item {
    background: #fff;
    border: 1px solid #d5b585;
    border-radius: 999px;
    padding: 14px 10px;
    text-align: center;
    font-weight: 700;
    color: #7e3d14;
    box-shadow: 0 4px 12px rgba(88, 52, 17, 0.08);
}
.rashifal-detail {
    background: #fff;
    border: 1px solid #d8b97a;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(50, 31, 7, 0.09);
    margin-top: 22px;
    padding: 24px;
}
.rashifal-detail h2 {
    text-align: left;
    margin-bottom: 12px;
}
.rashifal-detail p {
    color: #3d2716;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature-card {
    background: #fff;
    border: 2px solid #d8b97a;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(96, 64, 19, 0.08);
}
.feature-icon {
    font-size: 34px;
    color: #c58c1d;
}
.feature-card h3 {
    margin: 8px 0 6px;
    font-size: 28px;
    color: #261100;
}
.feature-card p {
    margin: 0;
    color: #4f4031;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(66, 44, 18, 0.12);
}
.thumb {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 24px;
}
.video-body { padding: 14px; }
.video-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #351506;
}
.video-body p {
    margin: 0;
    color: #775a43;
    font-size: 14px;
}
.live-page h1, .episode-page h1 { text-align: left; }
.live-player-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(50, 31, 7, 0.12);
    margin: 18px 0;
}
.live-player-wrap iframe {
    display: block;
    width: 100%;
    height: min(70vw, 620px);
    min-height: 320px;
    border: 0;
}
.live-meta, .episode-content, .empty-state {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(50, 31, 7, 0.08);
}
.site-footer {
    margin-top: 30px;
    background: linear-gradient(180deg, #8c1b11, #6e120d);
    color: #f6d8b2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    padding: 30px 0;
}
.site-footer h3 { margin-top: 0; color: #ffd572; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials span {
    background: rgba(255,255,255,0.12);
    padding: 10px 12px;
    border-radius: 999px;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    padding: 12px;
}
.admin-body {
    background: #f6efe5;
    min-height: 100vh;
}
.login-card {
    width: min(420px, 92%);
    margin: 80px auto;
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(64, 29, 5, 0.14);
}
.login-card h1 { margin-top: 0; text-align: center; color: #7d1b10; }
.login-card label, .admin-form label { display: block; margin: 12px 0 6px; font-weight: 700; }
.login-card input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d8c0a2;
    font-size: 15px;
}
.checkbox-wrap { display: flex !important; align-items: center; gap: 10px; }
.checkbox-wrap input { width: auto; }
.full-width { width: 100%; }
.login-note { color: #735944; font-size: 14px; }
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.alert.success { background: #e7f5e9; color: #216b2e; }
.alert.error { background: #ffe7e7; color: #8d2020; }
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
}
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #7d1b10, #54110d);
    padding: 28px 18px;
    color: #fff;
    position: sticky;
    top: 0;
}
.admin-sidebar h2 { margin-top: 0; font-size: 24px; }
.admin-sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.08);
}
.admin-content {
    padding: 28px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 22px 0;
}
.stat-card, .panel {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(84, 44, 14, 0.08);
}
.stat-card h3 { margin: 0; font-size: 34px; color: #7d1b10; }
.stat-card p { margin: 8px 0 0; }
.admin-two-col {
    display: grid;
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: 18px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    border-bottom: 1px solid #ead8c0;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}
.admin-table th { color: #7d1b10; }
.small-text td, .small-text th { font-size: 14px; }
@media (max-width: 980px) {
    .main-nav { font-size: 16px; gap: 14px; }
    .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-grid, .video-grid, .footer-grid, .stats-grid, .admin-two-col { grid-template-columns: repeat(2, 1fr); }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { min-height: auto; position: static; }
}
@media (max-width: 640px) {
    .nav-wrap { flex-direction: column; }
    .zodiac-grid, .cards-grid, .video-grid, .footer-grid, .stats-grid, .admin-two-col { grid-template-columns: 1fr; }
    .logo { font-size: 28px; }
    .logo span { font-size: 20px; }
    .hero-logo { font-size: 46px; }
    .btn { font-size: 16px; }
}

.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.section-head-row h2, .section-head-row .section-subtitle { text-align: left; margin-bottom: 4px; }
.text-link {
    color: #7d1b10;
    font-weight: 800;
    border-bottom: 2px solid #d8ac55;
}
.two-cards { grid-template-columns: repeat(2, 1fr); }
.live-option-card h3 { color: #7d1b10; }
.news-grid, .booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.news-card, .booking-card, .article-card, .short-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(50, 31, 7, 0.09);
}
.news-card span, .article-date {
    display: inline-block;
    color: #9b6414;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.news-card h3 { margin: 0 0 8px; color: #351506; }
.news-card p { margin: 0; color: #5f4935; }
.list-news-grid { grid-template-columns: repeat(2, 1fr); }
.article-card { max-width: 880px; margin: 0 auto; }
.article-card h1 { text-align: left; }
.article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin: 12px 0 20px;
}
.article-content {
    font-size: 18px;
    line-height: 1.75;
    color: #3d2716;
}
.article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.short-card {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(50, 31, 7, 0.1);
}
.short-thumb {
    height: 320px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.short-card h3 { margin: 12px 4px 4px; color: #351506; }
.short-card p { margin: 0 4px 6px; color: #775a43; font-size: 14px; }
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 24px;
}
.filter-pills a {
    background: #fff;
    border: 1px solid #d8b97a;
    padding: 10px 16px;
    border-radius: 999px;
    color: #7d1b10;
    font-weight: 700;
}
.filter-pills a.active { background: #7d1b10; color: #fff8ea; }
.short-detail-card {
    display: grid;
    grid-template-columns: minmax(280px, 390px) 1fr;
    gap: 24px;
    align-items: center;
}
.short-player-wrap {
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    background: #1f110b;
    box-shadow: 0 12px 35px rgba(64, 29, 5, 0.16);
}
.short-player-wrap iframe, .short-player-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}
.short-detail-content h1 { text-align: left; }
.booking-card { text-align: center; }
.booking-icon { font-size: 48px; }
.booking-card h3 { color: #7d1b10; margin-bottom: 8px; }
.booking-note { margin-top: 20px; text-align: center; }
.bottom-mobile-nav { display: none; }
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.editor-toolbar button {
    border: 1px solid #d8b97a;
    background: #fff8ea;
    color: #7d1b10;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
}
.rich-editor {
    min-height: 240px;
    background: #fff;
    border: 1px solid #d8c0a2;
    border-radius: 10px;
    padding: 14px;
    line-height: 1.6;
    overflow: auto;
}
.form-note {
    margin: 6px 0 0;
    color: #735944;
    font-size: 13px;
}
.admin-stats-expanded { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
    .news-grid, .booking-grid, .shorts-grid { grid-template-columns: repeat(2, 1fr); }
    .short-detail-card { grid-template-columns: 1fr; }
    .short-player-wrap { max-width: 420px; width: 100%; margin: 0 auto; }
    .admin-stats-expanded { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    body { padding-bottom: 72px; }
    .site-header { top: 0; }
    .main-nav { display: none; }
    .nav-wrap { flex-direction: row; justify-content: center; }
    .section-head-row { align-items: flex-start; }
    .two-cards, .news-grid, .booking-grid, .shorts-grid, .list-news-grid { grid-template-columns: 1fr; }
    .short-thumb { height: 420px; }
    .bottom-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: #fff;
        border-top: 1px solid #ead9c0;
        box-shadow: 0 -8px 24px rgba(50, 31, 7, 0.12);
    }
    .bottom-mobile-nav a {
        padding: 8px 4px 7px;
        text-align: center;
        color: #7d1b10;
        font-size: 12px;
        font-weight: 800;
    }
    .bottom-mobile-nav span {
        display: block;
        font-size: 18px;
        line-height: 1;
        margin-bottom: 3px;
    }
    .admin-content { padding: 18px; overflow-x: auto; }
    .admin-table { min-width: 620px; }
    .article-content { font-size: 16px; }
}
