/* ===== StarGame Online - Modernizace původního layoutu ===== */

/* Základní styly - přepisují původní index.css */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1020;
    color: #c5c5c5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hlavní kontejner */
#m {
    width: 1200px;
    max-width: 100%;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

/* Header sekce - FIXNÍ s pozadím */
#l {
    height: 390px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100%;
    z-index: 90;
    background: url(../img/index/b.jpg) no-repeat top center;
    background-size: auto;
    overflow: hidden;
}

/* Login panel - fixní pozice v headeru vpravo - SCI-FI STYL */
#pr {
    width: 230px !important;
    position: fixed !important;
    text-align: center;
    right: max(10px, calc(50% - 590px)) !important;
    top: 20px !important;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 25, 50, 0.8) 0%, rgba(5, 15, 35, 0.92) 100%);
    border: 1px solid rgba(80, 170, 255, 0.35);
    border-radius: 10px;
    box-shadow:
        0 0 15px rgba(50, 150, 255, 0.15),
        inset 0 0 20px rgba(0, 50, 100, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* Rohové dekorace pro login panel */
#pr::before,
#pr::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(100, 200, 255, 0.4);
    pointer-events: none;
}

#pr::before {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
    border-radius: 4px 0 0 0;
}

#pr::after {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 4px 0;
}

/* Hlavička login panelu - SCI-FI */
#pr .h {
    background: linear-gradient(90deg, rgba(20, 55, 95, 0.85) 0%, rgba(25, 70, 120, 0.85) 50%, rgba(20, 55, 95, 0.85) 100%);
    border-bottom: 1px solid rgba(100, 200, 255, 0.3);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
    position: relative;
}

#pr .h::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.6), transparent);
}

/* Login formulář kontejner */
#lo {
    padding: 12px 14px;
    background: transparent;
    width: auto;
    height: auto;
}

/* Tabulka přihlášení */
#pri {
    width: 100%;
    margin: 0;
}

#pri td {
    padding: 4px 3px;
    text-align: left;
}

#pri label {
    color: #8899aa;
    font-size: 12px;
}

/* Input pole - SCI-FI */
#login, #heslo {
    width: 100%;
    background: rgba(0, 20, 40, 0.5);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 5px;
    padding: 7px 10px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

#login:focus, #heslo:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.25),
        0 0 10px rgba(50, 150, 255, 0.2);
}

/* Tlačítko přihlášení - SCI-FI */
input[type=submit][name=prihlaseni] {
    width: 100%;
    background: linear-gradient(180deg, rgba(25, 85, 150, 0.9) 0%, rgba(18, 60, 120, 0.95) 100%);
    color: #fff;
    border: 1px solid rgba(100, 200, 255, 0.25);
    border-radius: 5px;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
    text-shadow: 0 0 6px rgba(100, 200, 255, 0.4);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input[type=submit][name=prihlaseni]:hover {
    background: linear-gradient(180deg, rgba(35, 110, 190, 0.95) 0%, rgba(25, 80, 160, 1) 100%);
    box-shadow:
        0 4px 18px rgba(50, 150, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 12px rgba(50, 150, 255, 0.2);
    border-color: rgba(100, 200, 255, 0.45);
}

/* Registrace tlačítko */
.btn-registrace {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 20px;
    background: linear-gradient(180deg, rgba(90, 50, 180, 0.85) 0%, rgba(60, 40, 150, 0.9) 100%);
    color: #fff !important;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 5px;
    border: 1px solid rgba(140, 110, 255, 0.35);
    box-shadow: 0 2px 10px rgba(100, 50, 200, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-registrace:hover {
    background: linear-gradient(180deg, rgba(110, 65, 210, 0.9) 0%, rgba(75, 50, 180, 0.95) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(100, 50, 200, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(160, 130, 255, 0.5);
}

/* Countdown box */
#pr > span {
    display: block;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 10px;
    line-height: 1.4;
    color: #667788;
}

#pr > span:first-of-type {
    border-top: 1px solid rgba(100, 150, 255, 0.15);
    padding-top: 6px;
}

#pr > span span {
    display: block;
    color: #4dabf7;
    font-size: 11px;
}

/* Stats bar - v headeru */
#s {
    position: absolute;
    bottom: 5px;
    left: 0;
    font-size: 13px;
    color: #8899aa;
    width: 100%;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

#s span[style*="margin-left"] {
    margin-left: 0 !important;
}

#s strong {
    color: #4dabf7;
}

/* ===== MENU - FIXNÍ - SCI-FI ===== */
#me {
    background: linear-gradient(180deg, rgba(10, 25, 50, 0.95) 0%, rgba(5, 15, 35, 0.98) 100%);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 0;
    position: fixed;
    top: 382px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: 100%;
    height: 45px;
    z-index: 95;
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(100, 200, 255, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

#me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.35), transparent);
    z-index: 1;
}

#me a {
    color: #8899bb;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 15px 22px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

#me a:hover {
    background: rgba(50, 150, 255, 0.15);
    color: #4dabf7;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

#me a.s {
    background: linear-gradient(180deg, rgba(30, 100, 180, 0.8) 0%, rgba(20, 70, 140, 0.9) 100%);
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(100, 200, 255, 0.5);
}

#me a.s::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: rgba(100, 200, 255, 0.6);
}

/* ===== OBSAH - scrolluje se - SCI-FI ===== */
#c {
    background: linear-gradient(180deg, rgba(8, 20, 40, 0.92) 0%, rgba(5, 15, 30, 0.96) 100%);
    border: 1px solid rgba(100, 200, 255, 0.15);
    border-radius: 12px;
    padding: 35px 45px;
    min-height: 300px;
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 30, 60, 0.3),
        0 0 60px rgba(50, 100, 200, 0.1);
    font-size: 16px;
    margin-top: 410px;
    position: relative;
    z-index: 80;
    backdrop-filter: blur(8px);
}

#c::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.4), transparent);
}

/* Nadpisy - SCI-FI */
#c h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

#c h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.6), transparent);
}

#c h2 {
    color: #7eb8da;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
    letter-spacing: 1px;
    border-left: 3px solid rgba(100, 200, 255, 0.5);
    padding-left: 15px;
}

#c h3 {
    color: #6aadcc;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.15);
}

/* Odstavce */
#c p {
    line-height: 1.8;
    color: #b0c0d0;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Odkazy */
#c a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.3s ease;
}

#c a:hover {
    color: #74c0fc;
    text-decoration: underline;
}

/* ===== HLÁŠKY ===== */
.hlaska {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.hlaska.error {
    background: rgba(200, 50, 50, 0.2);
    border-color: #e74c3c;
    color: #ff8888;
}

.hlaska.info {
    background: rgba(50, 100, 200, 0.2);
    border-color: #3498db;
    color: #88bbff;
}

.hlaska.ok {
    background: rgba(50, 200, 100, 0.2);
    border-color: #2ecc71;
    color: #88ff88;
}

/* ===== TABULKY ===== */
.table {
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 20, 40, 0.8);
}

.table th, .table .th {
    background: linear-gradient(180deg, rgba(30, 60, 100, 0.8) 0%, rgba(20, 45, 80, 0.8) 100%);
    color: #7eb8da;
    padding: 12px;
    font-weight: bold;
}

.table td, .table .td {
    padding: 10px;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
}

.table tr:hover {
    background: rgba(77, 171, 247, 0.1);
}

/* ===== NOVINKY - SCI-FI KARTY ===== */
.novinky {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
}

.novinky > div {
    width: calc(33.333% - 20px);
    min-width: 250px;
    max-width: 320px;
    padding: 0;
    background: linear-gradient(180deg, rgba(10, 30, 60, 0.9) 0%, rgba(5, 20, 45, 0.95) 100%);
    border-radius: 10px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(100, 200, 255, 0.1);
}

.novinky > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #eab308, #f59e0b);
    opacity: 0.8;
}

.novinky > div:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 200, 255, 0.4);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(50, 150, 255, 0.2);
}

.novinky > div b {
    color: #f59e0b;
    display: block;
    padding: 15px 15px 10px 15px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.novinky > div p {
    color: #8899aa;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 15px;
    margin: 0;
}

.novinky > div span {
    color: #6b7280;
    font-size: 11px;
    display: block;
    padding: 0 15px 12px 15px;
}

/* Všechny obrázky v obsahu - prevence overflow */
#c img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* ===== UKÁZKY OBRÁZKŮ ===== */
#c img[src*="ukazka"] {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(100, 150, 255, 0.2);
}

#c img[src*="ukazka"]:hover {
    transform: scale(1.02);
    border-color: rgba(100, 150, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== FOOTER ===== */
#pa {
    padding: 20px 40px;
    background: linear-gradient(180deg, rgba(8, 18, 35, 0.95) 0%, rgba(5, 12, 25, 0.98) 100%);
    border: 1px solid rgba(100, 200, 255, 0.12);
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    color: #556677;
    font-size: 12px;
    position: relative;
    box-shadow:
        0 -2px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(100, 200, 255, 0.08);
}

#pa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.3), transparent);
}

#pa p {
    margin: 0;
    color: #4a5568;
    letter-spacing: 0.5px;
}

#pa a {
    color: #5a7a9a;
    text-decoration: none;
    transition: color 0.3s ease;
}

#pa a:hover {
    color: #4dabf7;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
}

/* ===== SEKCE BOXY (.sb) - SCI-FI STYL ===== */
.sb {
    background: linear-gradient(180deg, rgba(10, 25, 50, 0.85) 0%, rgba(5, 15, 35, 0.9) 100%);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: #b0c0d0;
    position: relative;
    box-shadow:
        0 0 15px rgba(50, 150, 255, 0.1),
        inset 0 0 20px rgba(0, 50, 100, 0.2);
    backdrop-filter: blur(5px);
}

.sb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.5), transparent);
}

.sb .n {
    background: linear-gradient(90deg, rgba(20, 50, 100, 0.8) 0%, rgba(30, 70, 130, 0.9) 50%, rgba(20, 50, 100, 0.8) 100%);
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 7px 7px 0 0;
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
}

/* ===== VÝSLEDKY STRÁNKA ===== */
#results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#results .sb {
    width: 140px;
    text-align: center;
    padding: 15px;
}

#results .sb .n {
    margin: -15px -15px 10px -15px;
    padding: 8px 10px;
    font-size: 14px;
}

#results .sb img {
    max-width: 80px;
    margin: 10px 0;
}

/* ===== REGISTRACE STRÁNKA ===== */
#c form {
    max-width: 100%;
}

#c form .sb table {
    width: 100%;
}

#c form .sb td {
    padding: 10px 8px;
    vertical-align: top;
}

#c form .sb label {
    color: #8899bb;
    font-weight: bold;
}

.nap {
    font-size: 12px;
    color: #667788;
    font-style: italic;
}

/* Radio buttons */
input[type=radio] {
    margin-right: 5px;
    accent-color: #4dabf7;
}

input[type=radio] + label {
    margin-right: 15px;
    color: #b0c0d0;
}

/* ===== TABULKY (.table) ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(10, 20, 40, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.table th, .table .th {
    background: linear-gradient(180deg, rgba(30, 60, 100, 0.8) 0%, rgba(20, 45, 80, 0.8) 100%);
    color: #7eb8da;
    padding: 12px 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}

.table td, .table .td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
    color: #b0c0d0;
}

.table tr:hover {
    background: rgba(77, 171, 247, 0.1);
}

.table img {
    vertical-align: middle;
}

/* Barvy pro stavy */
.g {
    color: #2ecc71 !important;
    font-weight: bold;
}

.w {
    color: #e74c3c !important;
    font-weight: bold;
}

/* ===== FORMULÁŘE OBECNĚ ===== */
input[type=text], input[type=password], input[type=number], textarea, select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type=text]:focus, input[type=password]:focus, input[type=number]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 10px rgba(77, 171, 247, 0.3);
}

input[type=submit], button, input[type=button] {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type=submit]:hover, button:hover, input[type=button]:hover {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

/* ===== MODAL PŘÍBĚHŮ RAS ===== */
.pribeh-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 999999;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.pribeh-modal-box.sb {
    position: relative;
    width: 90%;
    max-width: 700px;
    padding: 0;
    border-radius: 12px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    backdrop-filter: blur(12px);
}

.pribeh-modal-box.sb::before {
    display: none;
}

.pribeh-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(20, 55, 95, 0.85) 0%, rgba(25, 70, 120, 0.85) 50%, rgba(20, 55, 95, 0.85) 100%);
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
    flex-shrink: 0;
}

.pribeh-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pribeh-modal-title img {
    width: 40px;
    height: 40px;
}

.pribeh-modal-title h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 8px rgba(100, 200, 255, 0.4);
    letter-spacing: 1px;
    text-align: left;
}

.pribeh-modal-close {
    color: rgba(100, 200, 255, 0.7);
    font-size: 26px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1;
    cursor: pointer;
}

.pribeh-modal-close:hover {
    color: rgba(100, 200, 255, 1);
}

.pribeh-modal-obsah {
    padding: 25px;
    overflow-y: auto;
    color: #b0c0d0;
    line-height: 1.7;
    font-size: 15px;
}

.pribeh-modal-obsah img {
    max-width: 100%;
    height: auto;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 1300px) {
    #l {
        width: 100%;
        position: relative;
        transform: none;
        left: auto;
        height: auto;
        min-height: 300px;
        overflow: visible;
    }

    #pr {
        position: absolute !important;
        right: 10px !important;
        top: 15px !important;
        width: 220px !important;
    }

    #s {
        padding-right: 240px;
    }

    #me {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        width: 100%;
        margin: 0 auto;
        height: auto;
        overflow: visible;
        flex-wrap: wrap;
    }

    #c {
        margin-top: 20px;
    }

    #m {
        width: 95%;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    /* Header pro mobil - obrázek nahoře proporcionálně zmenšený, login pod ním */
    #l {
        min-height: auto;
        background-size: 100% auto; /* obrázek na celou šířku, výška proporcionální */
        background-position: top center;
        overflow: visible;
        padding-top: 26.6%; /* poměr výšky obrázku: 479/1800 = 26.6% */
    }

    /* Skrýt desktop dekorace na mobilu */
    #ch, #h {
        display: none;
    }

    /* Login panel pod obrázkem - plná šířka, v toku dokumentu */
    #pr {
        position: relative !important;
        float: none;
        width: 100% !important;
        top: auto !important;
        right: auto !important;
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
    }

    #pr .h {
        font-size: 11px;
        padding: 7px 8px;
        letter-spacing: 1px;
    }

    #lo {
        padding: 8px 10px;
    }

    #pri {
        max-width: 320px;
        margin: 0 auto;
    }

    #pri label {
        font-size: 11px;
    }

    #login, #heslo {
        padding: 5px 8px;
        font-size: 12px;
    }

    input[type=submit][name=prihlaseni] {
        padding: 6px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .btn-registrace {
        padding: 5px 12px;
        font-size: 9px;
        margin-top: 6px;
    }

    /* Stats bar - pod loginem, v toku */
    #s {
        position: relative;
        bottom: auto;
        clear: both;
        font-size: 11px;
        padding-right: 0;
    }

    /* Menu pro mobil */
    #me {
        flex-wrap: wrap;
        padding: 5px 8px;
        gap: 2px;
        height: auto;
        overflow: visible;
    }

    #me a {
        font-size: 11px;
        padding: 6px 8px;
    }

    /* Obsah pro mobil */
    #c {
        padding: 20px 15px;
        margin-top: 15px;
    }

    #c h1 {
        font-size: 24px;
    }

    #c h2 {
        font-size: 20px;
    }

    #c h3 {
        font-size: 18px;
    }

    #c p {
        font-size: 14px;
    }

    /* Novinky pro mobil */
    .novinky > div {
        width: calc(50% - 8px);
        min-width: 140px;
    }

    /* Výsledky pro mobil */
    #results .sb {
        width: 110px;
        padding: 10px;
    }

    #results .sb img {
        max-width: 60px;
    }

    /* Tabulky pro mobil */
    .table td, .table th, .table .td, .table .th {
        padding: 8px 5px;
        font-size: 13px;
    }

    /* Sekce boxy pro mobil */
    .sb {
        padding: 15px;
    }

    .sb .n {
        margin: -15px -15px 10px -15px;
        font-size: 14px;
        padding: 8px 10px;
    }

    /* Formuláře pro mobil */
    input[type=text], input[type=password], input[type=number], textarea, select {
        width: 100%;
        box-sizing: border-box;
    }

    /* Patička pro mobil */
    #pa {
        padding: 15px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* Extra malé obrazovky - padding-top: 26.6% z 768px breakpointu funguje */

    #pr .h {
        font-size: 10px;
        padding: 5px 6px;
        letter-spacing: 1px;
    }

    #lo {
        padding: 5px 6px;
    }

    #pri {
        max-width: 280px;
    }

    #pri td {
        padding: 2px;
    }

    #pri label {
        font-size: 10px;
    }

    #login, #heslo {
        padding: 4px 5px;
        font-size: 11px;
    }

    input[type=submit][name=prihlaseni] {
        padding: 4px;
        font-size: 10px;
    }

    .btn-registrace {
        padding: 3px 8px;
        font-size: 8px;
        margin-top: 3px;
    }

    #s {
        font-size: 9px;
        padding: 4px 8px;
        flex-direction: column;
        gap: 2px;
    }

    #me a {
        font-size: 10px;
        padding: 5px 6px;
    }

    .novinky > div {
        width: 100%;
    }

    #results .sb {
        width: 100px;
    }

    #c h1 {
        font-size: 20px;
    }

    .table {
        font-size: 12px;
    }

    .table td, .table th {
        padding: 6px 3px;
    }
}

/* ===== RESPONZIVITA - PODSTRÁNKY (registrace, kronika, kontakt) ===== */

@media (max-width: 768px) {
    /* --- Obecné: .sb a hlášení na plnou šířku --- */
    #c .sb {
        width: 95% !important;
        box-sizing: border-box;
    }

    #hlaseni {
        width: 95% !important;
    }

    /* --- REGISTRACE --- */
    /* Schovat nápovědu (3. sloupec) na mobilu */
    .nap {
        display: none;
    }

    /* Tabulky uvnitř .sb na plnou šířku */
    #c .sb table {
        width: 100% !important;
    }

    /* Tabulka registrace - labely nad inputy (jen formulářové tabulky, ne .table) */
    #c .sb table:not(.table) td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding: 3px 0;
    }

    #c .sb table:not(.table) tr {
        display: block;
        margin-bottom: 8px;
    }

    /* Inputy v registraci - plná šířka */
    #c .sb input[type="text"],
    #c .sb input[type="password"],
    #c .sb select {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Submit tlačítko */
    #c .sb input[type="submit"] {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        margin-top: 5px;
    }

    /* Registrace - info boxy pod formulářem */
    .reg-info-box {
        max-width: 95% !important;
    }

    /* Tabulka ras - horizontální scroll */
    #c .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Modal příběhů ras */
    .pribeh-modal-box {
        width: 95% !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* --- KONTAKT --- */
    /* Logo GeeSkys - zrušit float, vycentrovat */
    .kontakt-logo {
        float: none !important;
        display: block;
        margin: 0 auto 15px auto !important;
    }

    .kontakt-box {
        max-width: 100% !important;
    }

    /* --- KRONIKA --- */
    /* Komentáře - menší odsazení na mobilu */
    .comment {
        box-sizing: border-box;
    }

    .comment-1 { margin-left: 3% !important; width: 97% !important; }
    .comment-2 { margin-left: 5% !important; width: 95% !important; }
    .comment-3 { margin-left: 7% !important; width: 93% !important; }
    .comment-4 { margin-left: 9% !important; width: 91% !important; }
    .comment-5, .comment-6, .comment-7, .comment-8, .comment-9, .comment-10 {
        margin-left: 10% !important;
        width: 90% !important;
    }

    /* Komentář textarea */
    #comments textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Komentář form tabulka */
    #comments table {
        width: 100%;
    }

    #comments table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding: 3px 0;
    }

    #comments table tr {
        display: block;
        margin-bottom: 5px;
    }

    /* Komentář předmět input */
    #comments input[type="text"] {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Článek detail - přestat floatovat */
    .clanek .clanek-detail {
        float: none;
        display: block;
        margin-top: 5px;
        border-radius: 5px;
    }

    /* Článek */
    .clanek {
        padding: 8px;
    }

    .clanek h2 {
        font-size: 16px;
    }

    /* Avatar v komentáři */
    .comment-body img {
        width: 35px;
        height: 42px;
    }

    .comment-body p {
        margin-left: 45px;
    }

    /* Hodnocení radio buttony */
    #c form[action*="kronika"] label {
        padding: 0 3px;
    }

    /* Správa článků tabulka - scroll */
    #c .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* --- Obecné --- */
    #c .sb {
        width: 100% !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #hlaseni {
        width: 100% !important;
    }

    /* --- REGISTRACE --- */
    #c .sb table td label {
        font-size: 12px;
    }

    /* Radio buttony na registraci */
    #c .sb input[type="radio"] {
        margin: 3px 2px;
    }

    /* --- KONTAKT --- */
    .kontakt-logo {
        max-width: 120px;
    }

    /* --- KRONIKA --- */
    .comment-body img {
        width: 30px;
        height: 36px;
    }

    .comment-body p {
        margin-left: 38px;
        font-size: 12px;
    }

    .comment-bottom * {
        font-size: 10px;
        padding: 2px;
    }

    .predmet {
        font-size: 13px;
    }

    .clanek .labels {
        font-size: 11px;
    }

    .clanek .clanek-detail span {
        padding: 0 4px;
        font-size: 11px;
    }
}
