/* ==========================================================================
   PLAY X Theme - Main Stylesheet
   Fighting League / Sports Style
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary: #0d0d0d;
    --primary-rgb: 13,13,13;
    --surface: #141414;
    --surface-2: #1e1e1e;
    --accent: #e63946;
    --accent-glow: rgba(230,57,70,0.4);
    --gold: #f4a300;
    --white: #ffffff;
    --gray-100: #f7f7f8;
    --gray-200: #e5e5e7;
    --gray-400: #999;
    --gray-600: #666;
    --text: #222;
    --text-light: #888;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    --max-w: 1240px;
    --header-h: 64px;
    --radius: 8px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #c5303c; }

/* ===================== TOP BAR ===================== */
.top-bar {
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}
.top-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-sep { margin: 0 8px; opacity: 0.3; }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-right a {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    transition: color 0.2s;
}
.top-bar-right a:hover { color: var(--accent); }

/* ===================== HEADER ===================== */
.site-header {
    background: linear-gradient(180deg, #111 0%, var(--primary) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 24px;
}

/* Accent line under header */
.header-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 50%, var(--accent) 100%);
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; }
.site-branding img, .custom-logo {
    max-height: 38px !important;
    width: auto !important;
}
.site-title {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
}
.title-play {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.title-x {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
}

/* Nav */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: center;
}
.primary-menu li { position: relative; }
.primary-menu a {
    display: block;
    color: rgba(255,255,255,0.65);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    position: relative;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--white);
}
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.25s;
    transform: translateX(-50%);
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
    width: 60%;
}

/* Hide KLEO login/logout menu items */
.kleo-login-nav,
.kleo-logout-nav { display: none !important; }

/* Submenus */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    padding: 6px;
    list-style: none;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.06);
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a {
    color: rgba(255,255,255,0.7);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
}
.primary-menu .sub-menu a::after { display: none; }
.primary-menu .sub-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

/* Header actions */
.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* LOGIN BUTTON - 스파링 리그 스타일 */
.login-btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 9px 22px;
    font-size: 0.78rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: all 0.2s;
}
.login-btn:hover {
    background: #ff4757;
    box-shadow: 0 0 20px var(--accent-glow);
}
.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.login-btn:hover::before { left: 100%; }

/* Logged-in user avatar */
.user-menu-wrap { position: relative; }
.user-menu-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.user-menu-toggle:hover { border-color: var(--accent); }
.user-avatar { border-radius: 50%; width: 36px; height: 36px; object-fit: cover; }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    min-width: 240px;
    z-index: 200;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    animation: ddFade 0.2s ease;
}
.user-dropdown.open { display: block; }
@keyframes ddFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.user-dropdown-header img { width: 40px; height: 40px; border-radius: 50%; }
.user-dropdown-header strong { display: block; color: var(--white); font-size: 0.9rem; }
.user-dropdown-header small { color: var(--gray-400); font-size: 0.75rem; }
.user-dropdown-links { padding: 6px; }
.user-dropdown-links a {
    display: block;
    padding: 10px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.15s;
}
.user-dropdown-links a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.user-dropdown-footer { padding: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.user-dropdown-footer .logout-link {
    display: block;
    padding: 10px 14px;
    color: var(--accent);
    font-size: 0.85rem;
    border-radius: 6px;
}
.user-dropdown-footer .logout-link:hover { background: rgba(230,57,70,0.1); }

/* ===================== LOGIN MODAL ===================== */
.login-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.login-modal-overlay.active { display: flex; }

.login-modal {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    padding: 36px 28px 28px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1);
    max-height: 92vh;
    overflow-y: auto;
    color: var(--white);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.login-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Modal header */
.login-modal-header { text-align: center; margin-bottom: 28px; }
.login-logo-mark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}
.logo-play {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
}
.logo-x {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
}
.login-modal-header p {
    margin: 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* Social buttons */
.social-login-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}
.social-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    position: relative;
    min-height: 70px;
}
.social-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.social-btn svg { flex-shrink: 0; }

.social-google { background: rgba(255,255,255,0.06); color: var(--white); }
.social-google:hover { background: rgba(255,255,255,0.1); }
.social-kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.social-kakao:hover { background: #ffed4a; }
.social-naver { background: #03C75A; color: #fff; border-color: #03C75A; }

.social-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.soon-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.55rem;
    font-style: normal;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 18px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.login-divider span { padding: 0 14px; }

/* Form */
.login-form { margin-bottom: 16px; }
.form-field { margin-bottom: 12px; position: relative; }
.form-field input[type="text"],
.form-field input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--white);
    outline: none;
    transition: all 0.2s;
}
.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255,255,255,0.08);
}
.form-field input::placeholder { color: rgba(255,255,255,0.25); }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 2px;
    line-height: 0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.8rem;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    cursor: pointer;
}
.remember-me input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.form-options a { color: var(--gray-400); }
.form-options a:hover { color: var(--accent); }

.login-error {
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    background: rgba(230,57,70,0.12);
    color: var(--accent);
    border: 1px solid rgba(230,57,70,0.2);
    text-align: center;
}
.login-error.login-success {
    background: rgba(40,167,69,0.12);
    color: #4ade80;
    border-color: rgba(40,167,69,0.2);
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    min-height: 50px;
}
.login-submit-btn:hover { background: #ff4757; box-shadow: 0 0 24px var(--accent-glow); }
.login-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.login-form.shake { animation: shake 0.3s ease; }

/* Login Tabs */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    gap: 0;
}
.login-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}
.login-tab:hover { color: rgba(255,255,255,0.7); }
.login-tab.active { color: var(--white); }
.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* Tab content visibility */
.login-tab-content { display: none; }
.login-tab-content.active { display: block; }

/* Phone input field */
.form-field input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--white);
    outline: none;
    transition: all 0.2s;
    letter-spacing: 1px;
}
.form-field input[type="tel"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255,255,255,0.08);
}
.form-field input[type="tel"]::placeholder { color: rgba(255,255,255,0.25); }

/* PIN Field */
.pin-field {
    margin: 18px 0 14px;
}
.pin-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-400);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.pin-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pin-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--white);
    outline: none;
    transition: all 0.2s;
    padding: 0;
    -moz-appearance: textfield;
}
.pin-box::-webkit-outer-spin-button,
.pin-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pin-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255,255,255,0.1);
}
.pin-box:not(:placeholder-shown) {
    background: rgba(255,255,255,0.1);
}
.pin-dash {
    font-size: 1.2rem;
    color: var(--gray-400);
    font-weight: 700;
    margin: 0 2px;
    user-select: none;
}

.pin-forgot-link {
    color: var(--gray-400);
    font-size: 0.78rem;
}
.pin-forgot-link:hover { color: var(--accent); }

/* PIN Reset Steps */
.pin-reset-step { display: none; }
.pin-reset-step.active { display: block; }
.pin-reset-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin: 0 0 16px;
    line-height: 1.6;
    text-align: center;
}
.pin-reset-timer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--gold);
    margin: 12px 0 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pin-resend-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pin-resend-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.login-footer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-400);
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.login-footer p { margin: 0; }
.login-footer a { color: var(--accent); font-weight: 700; }

/* ===================== LAYOUT ===================== */
.site-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - var(--header-h) - 100px);
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.5);
    padding: 28px 0;
    margin-top: 48px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-inner p { margin: 0; font-size: 0.82rem; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
    text-align: left;
}
.footer-business-info {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.9;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-business-info .separator { margin: 0 6px; opacity: 0.3; }
.footer-powered {
    margin-top: 10px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ===================== HOMEPAGE SECTIONS ===================== */

/* Icons */
.homepage-icons { margin-bottom: 36px; }
.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--gray-100);
}
.icon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.icon-image { width: 100%; height: auto; border-radius: var(--radius); }
.icon-image.rounded { border-radius: 50%; }

/* Chatbot */
.homepage-chatbot { margin-bottom: 36px; }
.chatbot-notice {
    background: #f0f4ff;
    border-left: 4px solid #5b7cfa;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.chatbot-notice p { margin: 0; }

/* Notices */
.homepage-notices { margin-bottom: 36px; }
.notices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.section-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 14px;
    color: var(--primary);
}
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.notice-thumb { flex-shrink: 0; width: 60px; }
.notice-thumb img { border-radius: 4px; }
.notice-title { color: var(--text); font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 3px; }
.notice-title:hover { color: var(--accent); }
.notice-info time { font-size: 0.78rem; color: var(--text-light); }

/* Latest posts */
.homepage-latest { margin-bottom: 36px; }
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.latest-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}
.latest-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.latest-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.latest-info { padding: 12px 14px; }
.latest-info h4 { margin: 0 0 4px; font-size: 0.88rem; line-height: 1.35; }
.latest-info h4 a { color: var(--text); }
.latest-info h4 a:hover { color: var(--accent); }
.latest-info time { font-size: 0.78rem; color: var(--text-light); }

/* ===================== POSTS / SINGLE / PAGES ===================== */
.posts-list { display: grid; gap: 20px; }
.post-card { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--gray-200); }
.post-thumbnail { flex-shrink: 0; width: 200px; }
.post-thumbnail img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }
.post-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 12px; }
.post-excerpt { font-size: 0.9rem; color: var(--gray-600); }

.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 1.8rem; line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
.entry-meta { font-size: 0.85rem; color: var(--text-light); display: flex; gap: 16px; flex-wrap: wrap; }
.entry-thumbnail { margin-bottom: 24px; }
.entry-thumbnail img { border-radius: var(--radius); width: 100%; }
.entry-content { line-height: 1.8; font-size: 0.95rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.5em; }
.entry-content img { border-radius: var(--radius); }
.entry-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left; }
.entry-content th { background: var(--gray-100); font-weight: 700; }

/* ===================== SIDEBAR / WIDGETS ===================== */
.widget-area { padding: 20px 0; }
.widget { margin-bottom: 24px; }
.widget-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--gray-200); text-transform: uppercase; letter-spacing: 1px; }

/* ===================== PAGINATION ===================== */
.pagination { margin: 36px 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; min-width: 40px; min-height: 40px;
}
.pagination a { background: var(--gray-100); color: var(--text); }
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current { background: var(--accent); color: #fff; }

/* ===================== 404 ===================== */
.error-404 .error-content { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 6rem; color: var(--accent); margin: 0; font-weight: 900; }
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff4757; }

.search-results .page-title span { color: var(--accent); }
.woocommerce-page { padding: 20px 0; }

/* ===================== MOBILE BOTTOM NAV ===================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    z-index: 1001;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bottom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}
.mobile-bottom-nav li { flex: 1; }
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 6px;
    color: rgba(255,255,255,0.45);
    font-size: 0.62rem;
    font-weight: 700;
    gap: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 52px;
    transition: color 0.2s;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav .current-menu-item > a { color: var(--accent); }
.mobile-bottom-nav .nav-icon { font-size: 1.25rem; line-height: 1; }

/* Touch targets */
a, button, input, select, textarea { -webkit-tap-highlight-color: rgba(230,57,70,0.15); }

/* Admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .icon-grid { grid-template-columns: repeat(3, 1fr); }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-h: 54px; }
    body { font-size: 14px; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

    /* Top bar: hide on mobile */
    .top-bar { display: none; }

    /* Mobile bottom nav */
    .mobile-bottom-nav { display: block; }

    /* Header mobile */
    .site-branding img, .custom-logo { max-height: 30px !important; }
    .title-play { font-size: 1.1rem; }
    .title-x { font-size: 1.4rem; }

    /* Hide desktop nav, use bottom nav instead */
    .main-navigation { display: none; }

    /* Login button mobile */
    .login-btn {
        padding: 7px 14px;
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    /* Content */
    .site-content { padding: 16px 14px; }
    .icon-grid { gap: 10px; }
    .icon-item { padding: 8px; }
    .notices-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 0.9rem; }
    .notice-title { font-size: 0.95rem; }

    .post-card { flex-direction: column; }
    .post-thumbnail { width: 100%; }
    .entry-title { font-size: 1.3rem; }
    .entry-content { font-size: 0.9rem; }

    .site-footer { padding-bottom: 16px; }

    /* Login modal mobile */
    .login-modal { padding: 28px 20px 24px; max-width: 100%; border-radius: 14px; }
    .login-logo-mark { margin-bottom: 8px; }
    .logo-play { font-size: 1.3rem; }
    .logo-x { font-size: 1.6rem; }
    .social-btn { min-height: 62px; padding: 12px 6px; }

    /* PIN boxes mobile */
    .pin-box { width: 40px; height: 48px; font-size: 1.15rem; }
    .pin-boxes { gap: 6px; }
    .login-tab { font-size: 0.82rem; padding: 10px 0; }
}

@media (max-width: 480px) {
    .icon-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .latest-grid { grid-template-columns: 1fr; }
    .latest-card { display: flex; gap: 12px; }
    .latest-card .latest-thumb { flex-shrink: 0; width: 90px; }
    .latest-card .latest-thumb img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); }
    .latest-info { padding: 10px 12px 10px 0; display: flex; flex-direction: column; justify-content: center; }
    .entry-title { font-size: 1.15rem; }
}

/* Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-bottom-nav ul { padding: 0 env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0); }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
}
