* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.8;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 101, 132, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4em;
    font-weight: 700;
}

header h1 a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header h1 a:hover {
    opacity: 0.85;
}

nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

nav a.active {
    color: #fff;
    background: rgba(108, 99, 255, 0.3);
}

.hero {
    text-align: center;
    padding: 80px 0 50px;
    position: relative;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #6C63FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15em;
    max-width: 500px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 20px 0 40px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.widget-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    font-weight: 600;
}

.posts {
    padding: 0;
}

.posts h3 {
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.5);
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-item h4 {
    margin-bottom: 8px;
}

.post-item h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s;
}

.post-item h4 a:hover {
    color: #6C63FF;
}

.post-item time {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82em;
}

.post-item p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92em;
    line-height: 1.7;
}

/* Clock Widget */
.clock-display {
    text-align: center;
    padding: 5px 0;
}

.clock-time {
    font-size: 2.4em;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clock-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85em;
    margin-top: 5px;
}

.clock-seconds {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}

/* Weather Widget */
.weather-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-icon {
    font-size: 3em;
    line-height: 1;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
}

.weather-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9em;
    text-transform: capitalize;
}

.weather-location {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8em;
    margin-top: 3px;
}

.weather-loading {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
}

.weather-error {
    color: rgba(255, 101, 132, 0.7);
    font-size: 0.8em;
    cursor: pointer;
}

.weather-error:hover {
    color: #FF6584;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.weather-detail-item {
    text-align: center;
}

.weather-detail-label {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-detail-value {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Article pages */
article.post, article.about {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    margin: 30px 0;
}

article h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

article h3 {
    font-size: 1.3em;
    margin: 25px 0 15px;
    color: #e0e0e0;
}

article p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.65);
}

article time {
    display: block;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9em;
    margin-bottom: 20px;
}

article code {
    background: rgba(108, 99, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #b8b5ff;
}

article pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

article pre code {
    background: none;
    padding: 0;
    color: inherit;
}

article a {
    color: #6C63FF;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

article img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

article ul, article ol {
    margin: 15px 0;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.65);
}

article li {
    margin-bottom: 8px;
}

article blockquote {
    border-left: 3px solid #6C63FF;
    padding: 10px 20px;
    margin: 20px 0;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.6);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 40px;
}

/* ===== Gomoku (五子棋) Styles ===== */
.gomoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gomoku-canvas {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    max-width: 100%;
}

.gomoku-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gomoku-status {
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
}

.gomoku-status .highlight {
    color: #6C63FF;
}

.gomoku-restart {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gomoku-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.gomoku-restart:active {
    transform: scale(0.97);
}

/* ===== Games Page ===== */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.game-section-title {
    font-size: 1em;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.game-card-title {
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
}

.game-card-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8em;
    margin-top: 5px;
}

/* ===== 4399 iframe ===== */
.game-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.game-nav-btn {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.game-nav-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.4);
    color: #fff;
}

.game-nav-btn.active {
    background: rgba(108, 99, 255, 0.3);
    border-color: #6C63FF;
    color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.1); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.2); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    header .container {
        flex-direction: row;
    }

    header h1 {
        font-size: 1.1em;
    }

    nav a {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .hero {
        padding: 50px 0 30px;
    }

    article.post, article.about {
        padding: 24px;
    }

    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    nav {
        gap: 2px;
    }

    nav a {
        padding: 5px 8px;
        font-size: 0.72em;
    }

    .game-cards {
        grid-template-columns: 1fr;
    }

    .clock-time {
        font-size: 1.8em;
    }
}

/* ============================================================
   NEW LAYOUT STYLES (index.html dashboard)
   ============================================================ */

/* Top hero section */
.top-hero {
    padding: 40px 0 20px;
    text-align: center;
}

.clock-block {
    margin-bottom: 20px;
}

.clock-block .clock-time {
    font-size: 4.5em;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(108, 99, 255, 0.2);
}

.clock-date-gregorian {
    font-size: 1.4em;
    color: #fff;
    margin-top: 8px;
    font-weight: 500;
}

.clock-date-lunar {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Weather block */
.weather-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 32px;
    max-width: 520px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.weather-block:hover {
    border-color: rgba(108, 99, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.weather-greeting {
    font-size: 1.2em;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8em;
}

.weather-main .weather-icon {
    font-size: 1.2em;
}

.weather-main .weather-temp {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.weather-main .weather-desc {
    font-size: 0.55em;
    color: rgba(255, 255, 255, 0.6);
}

.weather-extra {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.weather-sep {
    opacity: 0.3;
}

.weather-message {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.55);
}

/* Cards section */
.cards-section {
    padding: 20px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.card-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-item:active {
    transform: scale(0.96);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.card-label {
    font-size: 1em;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Content area */
.content-section {
    padding: 10px 0 30px;
}

.content-area {
    position: relative;
}

.content-panel {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

.content-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.4);
}

.panel-header h2 {
    font-size: 1.3em;
    color: #fff;
    font-weight: 700;
}

.panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    padding: 8px 18px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 20px;
    color: #b8b5ff;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: #6C63FF;
    color: #fff;
}

/* Forecast detail */
.forecast-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
}

/* Gomoku layout */
.gomoku-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.gomoku-sidebar {
    flex: 0 0 180px;
}

.gomoku-board-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gomoku-status {
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
}

.gomoku-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.gomoku-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6C63FF, #FF6584);
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gomoku-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
}

.gomoku-btn:active {
    transform: scale(0.97);
}

.gomoku-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gomoku-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.gomoku-rules {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Other links */
.other-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.other-link-item {
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s;
}

.other-link-item:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Like section */
.like-section {
    padding: 30px 0;
    text-align: center;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid rgba(255, 101, 132, 0.3);
    border-radius: 50px;
    background: rgba(255, 101, 132, 0.08);
    color: #fff;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.like-btn:hover {
    background: rgba(255, 101, 132, 0.15);
    border-color: #FF6584;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 101, 132, 0.2);
}

.like-btn:active {
    transform: scale(0.95);
}

.like-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85em;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Responsive for new layout */
@media (max-width: 768px) {
    .clock-block .clock-time {
        font-size: 3.2em;
    }

    .clock-date-gregorian {
        font-size: 1.1em;
    }

    .clock-date-lunar {
        font-size: 0.9em;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .card-item {
        padding: 20px 10px;
    }

    .card-icon {
        font-size: 1.8em;
    }

    .card-label {
        font-size: 0.85em;
    }

    .gomoku-layout {
        flex-direction: column;
        align-items: center;
    }

    .gomoku-sidebar {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .gomoku-status {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .gomoku-controls {
        flex-direction: row;
        margin-bottom: 0;
    }

    .gomoku-rules {
        display: none;
    }

    .weather-block {
        padding: 20px;
    }

    .weather-main {
        font-size: 1.4em;
    }

    .other-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clock-block .clock-time {
        font-size: 2.5em;
        letter-spacing: 2px;
    }

    .clock-date-gregorian {
        font-size: 1em;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .card-item {
        padding: 16px 8px;
        border-radius: 14px;
    }

    .card-icon {
        font-size: 1.5em;
        margin-bottom: 6px;
    }

    .card-label {
        font-size: 0.78em;
    }

    .like-btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }

    .gomoku-sidebar {
        flex-direction: column;
    }

    .other-links {
        grid-template-columns: 1fr;
    }

    .weather-extra {
        font-size: 0.75em;
    }

    .weather-message {
        font-size: 0.85em;
    }
}
