/* ─── Satta Kings - Main Stylesheet ─── */
/* Modern dark theme with gold/amber accent */

* { font-family: inherit; }

:root {
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-accent: #16213e;
    --gold: #f5a623;
    --gold-bright: #ffd700;
    --red-accent: #e94560;
    --blue-accent: #0f3460;
    --text-primary: #eee;
    --text-muted: #999;
    --green: #27ae60;
    --white: #fff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-bright); }

h2 { color: #fff; font-size: 15px; text-align: center; }
p { margin: 0 0 0; }

/* ─── Top Navigation Bar ─── */
.topnav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topnav-brand {
    color: var(--gold-bright) !important;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none !important;
}

.topnav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topnav-btn {
    display: inline-block;
    padding: 7px 16px;
    background: var(--blue-accent);
    color: var(--white) !important;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid rgba(255,255,255,0.1);
}

.topnav-btn:hover {
    background: var(--gold);
    color: #000 !important;
    transform: translateY(-1px);
}

.topnav-btn-login {
    background: var(--red-accent);
}

.topnav-btn-login:hover {
    background: #c73650;
    color: #fff !important;
}

/* ─── King Header ─── */
.king h1 {
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, var(--gold) 0%, #e6951c 100%);
    color: #000;
    padding: 14px 10px;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.king-heading h2 {
    text-align: center;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--red-accent) 0%, #c73650 100%);
    border: 2px solid var(--gold);
    padding: 7px;
    color: #fff;
    font-size: 26px !important;
}

/* ─── Style Sections ─── */
.style1 {
    text-align: center;
    background-color: #fff;
    width: 100%;
    padding-top: 7px;
}

.style1-heading {
    font-weight: 700;
    color: #000;
    font-size: 20px;
}

.select-date {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

/* ─── Ad Banners ─── */
.ad-banner {
    background-color: #fff;
    color: #fff;
    font-weight: 700;
    font-size: large;
    border-width: 3px;
    border-color: red;
    border-style: outset;
    margin: 2px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.ad-banner button { background-color: red; }
.ad-whatapp button { background-color: green; }
.ad-banner-red { color: red; }
.ad-banner-green { color: green; }
.ad-banner-blue { color: blue; }
.ad-banner-purple { color: #580aa2; }
.ad-banner-black { color: #000; }

/* ─── Game Chart ─── */
.gameinchart {
    padding: 0 1px 5px 0;
    border: 1px solid #000;
    background-color: #f3092a;
    text-align: center;
}

.gameinchart a {
    text-transform: uppercase;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding-left: 2px;
    padding-right: 2px;
}

.gameinchart-result {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.tr1 {
    background-color: #fff;
    color: #000;
}

/* ─── Drag / Header Bar ─── */
.drag {
    background: linear-gradient(135deg, var(--blue-accent) 0%, #1a3a6e 100%);
    text-align: center;
    font-size: 20px;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 2px 0;
}

.drag h2 {
    margin-top: 4px;
    margin-bottom: 4px;
    color: var(--gold-bright);
}

.drag a {
    color: var(--gold-bright);
    font-size: 25px;
    text-decoration: none;
}

/* ─── List / Links ─── */
.list {
    background-color: var(--bg-card);
    border: 2px solid var(--blue-accent);
    text-align: center;
    padding: 8px 5px;
    border-radius: 19px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.list:hover {
    background-color: var(--blue-accent);
}

.list a {
    text-decoration: none;
    color: var(--gold);
    font-size: 16px;
    font-weight: bold;
}

.list:hover a {
    color: var(--gold-bright);
}

.list2 {
    background-color: #ff0;
    color: #fff;
    border-style: double;
    border-color: #903;
    text-align: center;
}

.list2 a {
    text-decoration: none;
    color: red;
    font-size: 16px;
}

.list4 {
    background-color: #ff0;
    border-radius: 8px;
    border-style: solid;
    border-color: red;
    text-align: center;
    padding: 5px 0;
}

.list4 a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

/* ─── Footer ─── */
.footer {
    background-color: red;
    border: 4px solid #000;
    text-align: center;
}

/* ─── Hotlinks ─── */
.hotlink {
    border: 1;
    text-align: center;
    width: 100%;
}

.hotlink td {
    padding: 2px;
    border: 2px solid #ff0;
    text-align: center;
    width: 50%;
    background-color: #000;
    font-weight: 700;
}

.hotlink a {
    text-decoration: none;
    font-weight: 700;
    color: #fff;
}

/* ─── Pages ─── */
.pages {
    width: 100%;
    text-align: center;
}

.pages a {
    text-decoration: none;
    text-align: center;
    color: #fff;
}

.pages td {
    padding: 8px 5px;
    text-align: center;
    background-color: #ff5e00;
    border: 2px solid #000;
}

.footer-pages {
    width: 100%;
    text-align: center;
}

.footer-pages td {
    padding: 8px 5px;
    text-align: center;
    background-color: #c2160d;
    border: 2px solid #fff;
}

/* ─── Misc ─── */
.bus {
    color: #fff;
    background-color: red;
    font-weight: 700;
}

.bookmark {
    background-color: #ff0;
    color: #fff;
    font-weight: 700;
    font-size: large;
    text-decoration: none;
    border-width: 3px;
    border-color: red;
    border-style: outset;
    margin: 2px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

/* ─── Chart Table ─── */
.chart {
    width: 100%;
    overflow-x: scroll;
    margin: auto;
    color: #ccc;
}

.rtable {
    border: 1px thin;
    text-align: center;
    width: 100%;
}

.nrtable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.nrtable th,
.nrtable td {
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nrtable th {
    border: 1px solid #000;
    background: var(--blue-accent);
    color: var(--gold-bright);
    font-size: 16px;
    font-weight: 700;
    padding: 6px 4px;
    text-align: center;
}

.nrtable td {
    border: 1px solid #333;
    color: #eee;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 3px;
    text-align: center;
    background-color: var(--bg-card);
}

.nrtable td.nrtable-date-cell {
    font-size: 14px;
}

/* ─── Mobile Card View ─── */
.result-cards { display: none; }

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--blue-accent);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.result-card-date {
    background: var(--blue-accent);
    color: var(--gold-bright);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 12px;
    text-align: center;
}

.result-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #333;
}

.result-card-item {
    background: var(--bg-card);
    padding: 8px 6px;
    text-align: center;
}

.result-card-game {
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.result-card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

/* ─── Mobile: hide table, show cards ─── */
@media (max-width: 600px) {
    .result-table-wrap { display: none; }
    .result-cards { display: block; }
}

.nrtable-fon {
    background-color: #b76856 !important;
    color: #000 !important;
}

.nrtable-date {
    background-color: #cec4eb !important;
}

.rtable td {
    border: 1px solid #000;
    color: #000;
}

.rtable th {
    border-color: #000;
    background-color: #cc4c1a;
    color: #ccc;
    font-size: 15px;
    font-weight: 700;
    padding: 0 5px;
}

/* ─── Content ─── */
.content {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: large;
    text-decoration: none;
    border: 2px solid var(--blue-accent);
    margin: 6px 3px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.content h3 {
    color: var(--gold);
    font-size: 21px;
    font-weight: 700;
}

.content a { color: var(--red-accent); }

.content p {
    font-size: 15px;
    text-align: justify;
    color: var(--text-primary);
}

/* ─── Text Styles ─── */
.livegame { color: #f08; font-size: 34px; font-weight: 700; }
.liveresult { color: green; font-size: 34px; font-weight: 700; }
.style4 { color: brown; font-size: 15px; font-weight: 700; }
.style5 { color: red; font-size: 20px; font-weight: 700; }
.style6 { color: blue; font-size: 15px; font-weight: 700; }
.style7 { color: #006400; font-size: 15px; font-weight: 700; }

.ttd {
    border-color: #000;
    background-color: #b90621;
    color: #ccc;
    font-size: 15px;
    font-weight: 700;
    padding: 0 5px;
}

/* ─── Site Footer ─── */
.site-footer {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--blue-accent) 100%);
    border-top: 3px solid var(--gold);
    padding: 15px 10px;
}

/* ─── Quick Links ─── */
.quicklink {
    text-align: center;
    font-weight: 700;
    margin: 12px 0;
}

.quicklink a {
    text-decoration: none;
    background: var(--gold);
    border-radius: 20px;
    padding: 8px 18px;
    color: #000;
    margin: 0 5px;
    font-size: 13px;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
}

.quicklink a:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
    color: #000;
}

/* ─── Message / Notice ─── */
.msg {
    background-color: #fff;
    color: #000;
    border: 2px solid blue;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.msg p {
    font-size: 18px;
    font-weight: 700;
}

.msg a {
    font-size: 19px;
    text-decoration: none;
    background-color: #ff0018;
    padding: 3px 7px;
    color: #f1e7e7;
    font-weight: 700;
    border: 1px solid #000;
    border-radius: 10px;
}

/* ─── Game Full / Half ─── */
.gamefull {
    padding: 0 1px;
    border: 1px solid #000;
    background-color: #bf5010;
    text-align: center;
}

.gamefull p { color: #ff0; }

.gamefull a {
    text-transform: uppercase;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.gamefull-result {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.gamehalf {
    padding: 3px 1px;
    border: 1px solid #000;
    min-height: 110px;
    text-align: center;
    background-color: #f5ecce;
}

.gamehalf a {
    color: red;
    font-size: 17px;
    font-weight: 700;
}

.gamehalf p {
    color: #000;
    font-weight: 700;
}

.gamehalf-result {
    color: #000;
    font-size: 20px;
    font-weight: 700;
}

/* ─── HR Border ─── */
.hr-border {
    margin-top: 11px;
    margin-bottom: 11px;
    border: 0;
    border-top: 1px solid var(--gold);
}

/* ─── Dashed Table ─── */
.dashed tr td {
    text-align: center;
    border: solid 1px black;
}

.date, .name {
    width: 12%;
}

.sattano {
    color: black;
    font-size: 15px;
    font-weight: bold;
}

/* ─── Matka Result ─── */
.matka-result {
    background-color: #000;
    text-align: center;
    padding: 0 !important;
    border: 3px solid #fff;
}

.matka-result h2 {
    font-size: 20px;
    color: #ff0;
    margin-top: 10px;
    margin-bottom: 16px;
}

.matka-result h5 {
    font-size: 25px;
    color: #fff;
    background-color: #f13f68;
    margin: 0;
    font-weight: 700;
    padding: 7px;
}

.matka-live-game {
    background-color: #fff;
    padding: 8px;
    border-bottom: 2px solid #133469;
}

.matka-live-game h4 {
    font-size: 22px;
    font-weight: 700;
    color: #090909;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.matka-live-game span {
    font-weight: 700;
    color: #9c0000;
    font-size: 21px;
}

/* ─── Timetable ─── */
.timetable p {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    background-color: #ff0;
    color: #000;
    text-align: center;
    padding: 3px 0 0;
}

.timetable table { width: 100%; }

.timetable td {
    border: 2px solid #ff0;
    color: #efefe7;
    padding: 6px;
    font-size: 17px;
    padding-left: 15px;
}

/* ─── Chart Page: Range Buttons ─── */
.range-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--gold) !important;
    border: 1px solid var(--blue-accent);
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.range-btn:hover {
    background: var(--blue-accent);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.range-btn-active {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold-bright);
}

/* ─── Chart Page: Selects & Submit ─── */
.chart-select {
    background: var(--bg-card);
    color: var(--gold);
    border: 1px solid var(--blue-accent);
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.chart-select:focus {
    border-color: var(--gold);
    outline: none;
}

.chart-submit {
    background: var(--gold);
    color: #000;
    padding: 7px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.chart-submit:hover {
    background: var(--gold-bright);
}
