@charset "UTF-8";
/*
Theme Name: SSR
Theme URI: https://speed-score-ranking.com/
Author: SSR Team
Author URI: https://speed-score-ranking.com/
Description: ゲームRTA情報ポータルサイト
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssr
*/

/*
====================
1. CSS Variables & Reset
====================
*/
:root {
    /* Color Palette - Dark Gradient Theme */
    --color-primary: #4169e1;        /* ブルー - メインカラー */
    --color-primary-dark: #1e40af;   /* ダークブルー - ホバー用 */
    --color-primary-light: #3b82f6;  /* ライトブルー - サブカラー */
    --color-accent: #cc272e;
    --color-link: #60a5fa;           /* ライトブルー - リンク色 */
    
    /* Grayscale - Dark Theme */
    --color-text: #ffffff;           /* ホワイト - テキスト色 */
    --color-text-bold: #ffffff;      /* ホワイト - 強調テキスト */
    --color-text-light: #d1d5db;     /* ライトグレー */
    --color-text-lighter: #9ca3af;   /* より薄いグレー */
    --color-bg: rgba(0, 0, 0, 0.4);  /* 半透明黒 - 背景色 */
    --color-bg-gray: rgba(0, 0, 0, 0.2);  /* 半透明黒 - サブ背景 */
    --color-bg-dark: rgba(0, 0, 0, 0.6);  /* より濃い半透明黒 */
    --color-border: rgba(255, 255, 255, 0.1);  /* 半透明白 - ボーダー色 */
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Typography */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 60px;
    
    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: linear-gradient(135deg, #0d1b3e 0%, #000000 50%, #000000 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul { list-style: none; }

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-main {
    min-height: 60vh;
    padding-bottom: var(--spacing-xl);
}

/*
====================
Header & Navigation
====================
*/
.site-header {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    height: 60px;
    border-bottom: 1px solid var(--color-border);
}

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

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary); /* GameWith Blue */
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    position: relative;
    width: 300px;
    margin: 0 var(--spacing-lg);
}

.search-field {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-gray);
    font-size: var(--font-size-sm);
}

.search-submit {
    position: absolute;
    top: 50%;
    left: 12px;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.header-user-menu {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-login, .btn-register {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 50px;
    display: inline-block;
}

/* ログインボタン - アウトライン */
.btn-login {
    background: transparent;
    color: #00BBFF;
    border: 2px solid #00BBFF;
}

.btn-login:hover {
    background: rgba(0, 187, 255, 0.1);
    border-color: #00BBFF;
    color: #00BBFF;
    text-decoration: none;
}

/* 新規登録ボタン - グラデーション背景 */
.btn-register {
    background: linear-gradient(90deg, #006AE3 0%, #0027C4 100%);
    color: #ffffff;
    border: none;
}

.btn-register:hover {
    background: linear-gradient(90deg, #0056C4 0%, #001F9E 100%);
    box-shadow: 0 4px 8px rgba(0, 106, 227, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Platform Nav (Secondary) */
.platform-nav {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.platform-links {
    display: flex;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-xs);
    rgba(0, 0, 0, 0.4)-space: nowrap;
}

.platform-links a {
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 14px;
    position: relative;
}

.platform-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/*
====================
Home Layout (2 Column)
====================
*/
.home-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 24px;
}

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

/* Hero Carousel */
.hero-section {
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-slide {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    padding: 24px;
    color: rgba(0, 0, 0, 0.4);
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Pickup Banners */
.pickup-contents-section {
    margin-bottom: 24px;
}

.section-title-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.pickup-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pickup-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 8px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pickup-banner:hover {
    opacity: 0.9;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.4);
}

/* Ranking Section */
.ranking-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    padding-left: 16px;
}

.platform-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.platform-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.platform-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.ranking-list {
    display: none;
}
.ranking-list.active {
    display: block;
}

.ranking-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.ranking-item-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.ranking-item-link:hover .game-title {
    color: var(--color-primary);
    text-decoration: underline;
}

.rank-number {
    position: absolute;
    top: 8px;
    left: 0;
    width: 24px;
    height: 24px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ranking-item.rank-1 .rank-number { background: #FFD700; }
.ranking-item.rank-2 .rank-number { background: #C0C0C0; }
.ranking-item.rank-3 .rank-number { background: #CD7F32; }

.game-thumbnail {
    width: 80px;
    height: 45px; /* 16:9 */
    object-fit: cover;
    margin-left: 32px; /* space for rank */
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.game-excerpt {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 6px;
    line-height: 1.4;
}

.genre-tag {
    font-size: 11px;
    color: var(--color-primary);
    margin-right: 8px;
}

.ranking-more {
    margin-top: 16px;
}
.ranking-more a {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-bg-gray);
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
}
.ranking-more a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* News Section */
.news-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.news-item-row {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}
.news-item-row:last-child {
    border-bottom: none;
}

.news-item-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.news-item-link:hover .news-title {
    color: var(--color-primary);
    text-decoration: underline;
}

.news-thumbnail {
    width: 100px;
    height: 56px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-label {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #555;
    margin-right: 6px;
    font-weight: 700;
}
.label-release { background: #ffe0b2; color: #e65100; }
.label-update { background: #e3f2fd; color: #1565c0; }

.news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: inline;
}

.news-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    text-align: right;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: rgba(34, 34, 34, 0.6);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--color-border);
}
.sidebar-nav li:last-child { border-bottom: none; }

.sidebar-nav a {
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    font-size: 14px;
    position: relative;
    padding-left: 16px;
}
.sidebar-nav a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    top: 50%;
}

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

.sidebar-game-item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 10px;
}
.sidebar-game-item img {
    margin-bottom: 4px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.sidebar-game-item:hover {
    color: var(--color-primary);
}

.community-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.community-list img {
    width: 40px;
    height: 40px;
}
.community-list a {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text);
}
.community-list span {
    font-size: 11px;
    color: #d1d5db;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .home-container {
        grid-template-columns: 1fr;
    }
    .home-sidebar {
        display: none; /* Hide sidebar on tablet/mobile for simplicity or move to bottom */
    }
}

@media screen and (max-width: 600px) {
    .pickup-banners {
        grid-template-columns: 1fr;
    }
    .header-search { display: none; }
}

/* Footer (GameWith Style) */
.site-footer-gw {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* メインフッターリンク */
.footer-nav-main {
    margin-bottom: 16px;
}

.footer-links-main {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links-main li {
    margin: 0;
}

.footer-links-main a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links-main a:hover {
    text-decoration: underline;
}

/* サブフッターリンク */
.footer-nav-sub {
    margin-bottom: 16px;
}

.footer-links-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links-sub li {
    margin: 0;
}

.footer-links-sub a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links-sub a:hover {
    text-decoration: underline;
}

/* フッターコピーライト */
.footer-copyright-gw {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.footer-copyright-gw p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-light);
}

/* ページトップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
}

.back-to-top i {
    font-size: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .footer-links-main {
        gap: 12px 16px;
    }
    
    .footer-links-main a,
    .footer-links-sub a {
        font-size: 12px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/*
====================
GameWith Style Header
====================
*/

/* Header Top (Cyan Blue) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-top {
    padding: 12px 0;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo-gw {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-logo-gw:hover {
    opacity: 0.9;
    color: #ffffff;
}

.site-logo-gw svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.header-home-link,
.header-search-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-home-link:hover,
.header-search-link:hover {
    opacity: 0.8;
    color: #ffffff;
}

.header-search-link i {
    margin-right: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-gw {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 280px;
}

.search-field-gw {
    flex: 1;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-field-gw::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit-gw {
    background: none;
    border: none;
    padding: 8px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
}

.search-submit-gw:hover {
    color: var(--color-primary-light);
}

.header-user-menu-gw {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 24px;
    border: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

/* 新規登録ボタン - グラデーション背景 */
.header-btn[href*="register"],
.header-user-menu-gw a[href*="register"] {
    background: linear-gradient(90deg, #006AE3 0%, #0027C4 100%);
    color: #ffffff;
}

.header-btn[href*="register"]:hover,
.header-user-menu-gw a[href*="register"]:hover {
    background: linear-gradient(90deg, #0056C4 0%, #001F9E 100%);
    box-shadow: 0 4px 8px rgba(0, 106, 227, 0.3);
    color: #ffffff;
}

/* ログインボタン - アウトライン */
.header-btn[href*="login"]:not([href*="logout"]) {
    background: transparent;
    color: #00BBFF;
    border: 3px solid #00BBFF;
}

.header-btn[href*="login"]:not([href*="logout"]):hover {
    background: rgba(0, 187, 255, 0.1);
    border-color: #00BBFF;
    color: #00BBFF;
}

/* ログアウトボタン - ログインと同じスタイル */
.header-btn[href*="logout"] {
    background: transparent;
    color: #00BBFF;
    border: 3px solid #00BBFF;
}

.header-btn[href*="logout"]:hover {
    background: rgba(0, 187, 255, 0.1);
    border-color: #00BBFF;
    color: #00BBFF;
}

.header-btn i {
    font-size: 12px;
}

/* Header Subtext */
.header-subtext {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-subtext .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
}

.header-subtext p {
    color: #ffffff;
    margin: 0;
}

.ad-notice {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Main Navigation (Gray) */
.main-navigation-gw {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links-gw {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-links-gw li {
    margin: 0;
}

.nav-links-gw a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-links-gw a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
    color: #ffffff;
}

/* Responsive Header */
@media screen and (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-search-gw {
        width: 200px;
    }
    
    .header-home-link,
    .header-search-link {
        font-size: 12px;
    }
    
    .header-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .nav-links-gw {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links-gw a {
        padding: 12px 16px;
        font-size: 13px;
        rgba(0, 0, 0, 0.4)-space: nowrap;
    }
}

/*
====================
GameWith Style Homepage
====================
*/

/* PR Banner Section */
.pr-banner-section {
    background: transparent;
    padding: 24px 0;
    margin-bottom: 24px;
}

.pr-banner-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 80px 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-banner-placeholder p {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Home Container - 3 Column Layout */
.home-container-gw {
    display: grid;
    grid-template-columns: 240px 1fr 336px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* Left Sidebar */
.home-sidebar-left {
    position: sticky;
    top: 80px;
    align-self: start;
}

.widget-title-gw {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-nav-gw {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-gw li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-gw li:last-child {
    border-bottom: none;
}

.sidebar-nav-gw a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-nav-gw a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* Main Content Area */
.home-main-content {
    min-width: 0;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card-gw {
    background: rgba(34, 34, 34, 0.6);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.article-card-gw:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.article-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.badge-release { background: var(--color-accent); }
.badge-update { background: #FF9900; }
.badge-news { background: #d97706; }
.badge-event { background: #9933FF; }
.badge-feature { background: #00CC66; }
.badge-upcoming { background: var(--color-accent); }

.article-card-body {
    padding: 12px;
}

.article-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #ffffff;
}

.article-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #d1d5db;
    margin-bottom: 8px;
}

.article-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hashtag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Ranking Section */
.ranking-section-gw {
    background: rgba(34, 34, 34, 0.6);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title-gw {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-subtitle-gw {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.platform-tabs-gw {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.platform-tab-gw {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #d1d5db;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.platform-tab-gw.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.platform-tab-gw:hover {
    color: var(--color-primary);
}

.ranking-list-gw {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item-gw {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.ranking-item-gw:hover {
    background: rgba(65, 105, 225, 0.2);
    border-color: var(--color-primary);
}

.rank-number-gw {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.rank-number-gw.rank-1 { background: #FFD700; color: #ffffff; }
.rank-number-gw.rank-2 { background: #C0C0C0; color: #ffffff; }
.rank-number-gw.rank-3 { background: #CD7F32; color: rgba(0, 0, 0, 0.4); }

.ranking-item-thumb {
    width: 80px;
    height: 45px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item-content {
    flex: 1;
    min-width: 0;
}

.ranking-item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ranking-item-title a {
    color: #ffffff;
    text-decoration: none;
}

.ranking-item-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.ranking-item-excerpt {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.4;
}

/* Right Sidebar */
.home-sidebar-right {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget-gw {
    background: rgba(34, 34, 34, 0.6);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title-gw-small {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.game-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.game-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s;
}

.game-icon-item:hover {
    opacity: 0.7;
}

.game-icon-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 6px;
}

.game-icon-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

.more-link-gw {
    text-align: right;
}

.more-link-gw a {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: none;
}

.more-link-gw a:hover {
    text-decoration: underline;
}

/* Discord Widget */
.discord-widget .discord-content {
    text-align: center;
}

.discord-widget img {
    width: 100%;
    margin-bottom: 8px;
}

.discord-link {
    display: inline-block;
    padding: 8px 16px;
    background: #5865F2;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.discord-link:hover {
    background: #4752C4;
}

/* Community List */
.community-list-gw {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-list-gw li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

.community-list-gw li:last-child {
    border-bottom: none;
}

.community-list-gw a {
    text-decoration: none;
    color: inherit;
}

.community-info {
    display: flex;
    flex-direction: column;
}

.community-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.community-count {
    font-size: 11px;
    color: #9ca3af;
}

/* Responsive - GameWith Homepage */
@media screen and (max-width: 1200px) {
    .home-container-gw {
        grid-template-columns: 200px 1fr 280px;
        gap: 16px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .game-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .home-container-gw {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        position: static;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/*
====================
Single News Page
====================
*/

.single-news-page {
    background: transparent;
    padding: 24px 0;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 336px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.news-content {
    background: rgba(34, 34, 34, 0.6);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* News Header */
.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.badge-release { background: var(--color-accent); }
.badge-update { background: #FF9900; }
.badge-event { background: #9933FF; }
.badge-industry { background: var(--color-primary); }
.badge-record { background: #d97706; }
.badge-other { background: #9ca3af; }

.news-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #ffffff;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #d1d5db;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.news-meta i {
    margin-right: 4px;
}

/* News Thumbnail */
.news-thumbnail {
    margin-bottom: 24px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Body */
.news-body {
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 32px;
}

.news-body p {
    margin-bottom: 16px;
}

.news-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
}

.news-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.news-body ul, .news-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.news-body li {
    margin-bottom: 8px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

/* News Source */
.news-source {
    background: #f9f9f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.news-source i {
    margin-right: 8px;
    color: var(--color-primary);
}

.news-source a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.news-source a:hover {
    text-decoration: underline;
}

/* News Tags */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.news-tags i {
    color: #9ca3af;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #d1d5db;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--color-primary);
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin-bottom: 40px;
}

.share-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.line { background: #00B900; }

/* Related News */
.related-news {
    padding-top: 32px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.related-news .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.related-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-news-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.2s;
}

.related-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.related-news-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.related-news-thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content {
    flex: 1;
}

.related-news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #ffffff;
}

.related-news-date {
    font-size: 12px;
    color: #9ca3af;
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.news-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-widget-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-widget-list li:last-child {
    border-bottom: none;
}

.news-widget-list a {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #ffffff;
}

.news-widget-list a:hover {
    color: var(--color-primary);
}

.news-widget-list time {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 700;
}

.news-widget-list span {
    font-size: 13px;
    line-height: 1.4;
}

/* Sidebar Game List */
.sidebar-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s;
}

.sidebar-game-item:hover {
    border-color: var(--color-primary);
    background: rgba(65, 105, 225, 0.2);
}

.sidebar-game-item .rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #9ca3af;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-game-item .rank-badge.rank-1 { background: #FFD700; color: #ffffff; }
.sidebar-game-item .rank-badge.rank-2 { background: #C0C0C0; color: #ffffff; }
.sidebar-game-item .rank-badge.rank-3 { background: #CD7F32; color: rgba(0, 0, 0, 0.4); }

.sidebar-game-item .game-thumb {
    width: 50px;
    height: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-game-item .game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-game-item .game-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* Ad Widget */
.ad-widget .ad-box {
    width: 100%;
    overflow: hidden;
}

.ad-widget img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive - Single News */
@media screen and (max-width: 900px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .related-news-list {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}

/*
====================
Single Game Page
====================
*/

.game-single {
    background: transparent;
    padding: 24px 0;
}

.game-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 336px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.game-content {
    background: rgba(34, 34, 34, 0.6);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Game Header */
.game-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-thumbnail {
    width: 280px;
    flex-shrink: 0;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-released { background: var(--color-primary); }
.status-pre_registration { background: var(--color-accent); }
.status-coming_soon { background: #FF9900; }

.game-header-info {
    flex: 1;
}

.game-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
}

/* Game Meta */
.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-group i {
    color: #9ca3af;
    font-size: 14px;
}

.platform-tag, .genre-tag {
    font-size: 12px;
    padding: 4px 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.platform-tag {
    background: rgba(0, 0, 0, 0.3);
    color: #555;
    font-weight: 600;
}

.platform-tag:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.genre-tag {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
}

.genre-tag:hover {
    background: var(--color-primary);
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

/* Rating Box */
.rating-box {
    background: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.overall-rating {
    text-align: center;
    min-width: 100px;
    padding-right: 24px;
    border-right: 1px solid #e0e0e0;
}

.rating-label {
    display: block;
    font-size: 11px;
    color: #d1d5db;
    margin-bottom: 4px;
    font-weight: 700;
}

.rating-value.large {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.rating-max {
    font-size: 12px;
    color: #9ca3af;
}

.rating-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--color-primary);
}

.rating-item .rating-value {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    width: 24px;
    text-align: right;
}

/* Download Links */
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.download-btn:hover {
    opacity: 0.9;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.download-btn i {
    font-size: 16px;
}

.app-store { background: #111; }
.google-play { background: #3bccff; }
.steam { background: #171a21; }
.official { background: #555; }

/* User Actions */
.user-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.action-btn i {
    font-size: 14px;
}

.favorite-btn.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: #fff0f5;
}

.favorite-btn.active i {
    font-weight: 900;
}

/* Game Sections */
.game-section {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.game-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.section-heading i {
    color: var(--color-primary);
}

/* Highlights */
.highlights-list {
    border: 1px solid #bce3ff;
    padding: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #ffffff;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item i {
    color: var(--color-primary);
    margin-top: 4px;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.screenshot-item {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Sidebar Boxes */
.sidebar-box {
    background: rgba(34, 34, 34, 0.6);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sidebar-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}

/* Info List */
.info-list dt {
    font-size: 12px;
    color: #d1d5db;
    margin-bottom: 4px;
    font-weight: 700;
}

.info-list dd {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    margin-left: 0;
}

.info-list dd:last-child {
    margin-bottom: 0;
}

.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 12px;
    margin-right: 4px;
}

.sale-price {
    color: red;
    font-weight: 700;
}

/* Rank Display */
.rank-display {
    text-align: center;
    background: #f9f9f9;
    padding: 16px;
}

.rank-platform {
    font-size: 12px;
    color: #d1d5db;
    margin-bottom: 4px;
}

.rank-number {
    margin-bottom: 12px;
}

.rank-number .rank-value {
    font-size: 32px;
    font-weight: 900;
    color: #FFD700; /* Gold */
}

.rank-number .rank-suffix {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

/* Popular Games (Sidebar) */
.popular-game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-game-item:last-child {
    border-bottom: none;
}

.popular-rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
    font-weight: 700;
}

.popular-game-item:nth-child(1) .popular-rank { background: #FFD700; color: #ffffff; }
.popular-game-item:nth-child(2) .popular-rank { background: #C0C0C0; color: #ffffff; }
.popular-game-item:nth-child(3) .popular-rank { background: #CD7F32; color: rgba(0, 0, 0, 0.4); }

.popular-thumbnail {
    width: 60px;
    height: 34px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.popular-title a {
    color: #ffffff;
    text-decoration: none;
}

.popular-title a:hover {
    color: var(--color-primary);
}

.popular-rating {
    font-size: 11px;
    color: #f5a623;
    margin: 0;
}

/* Responsive - Game Single */
@media screen and (max-width: 900px) {
    .game-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .game-thumbnail {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .rating-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .overall-rating {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .rating-details {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-sidebar {
        margin-top: 20px;
    }
}

/*
=================================================================================
認証ページ（ログイン・新規登録）
=================================================================================
*/

.auth-page {
    padding: 60px 0;
    background: var(--color-bg-alt);
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 10px;
}

.auth-description {
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--color-primary-light);
}

.auth-message {
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.auth-message.success {
    background: #efe;
    color: #3a3;
    border-left: 4px solid #3a3;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group .required {
    color: var(--color-accent);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 184, 213, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 5px;
    margin-bottom: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    margin-top: 30px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 16px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .auth-page {
        padding: 30px 0;
    }
    
    .auth-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}

/* Archive Pages Common Styles */
.archive-game-page,
.archive-news-page {
    background: var(--color-bg-gray);
    padding: 24px 0;
}

.archive-page-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.archive-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
}

.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-wrapper .page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--color-primary);
    color: rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

/* Game Archive (List) Page */
.game-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.game-card {
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    box-shadow: var(--shadow-md);
}

.game-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.game-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-card-thumbnail img {
    transform: scale(1.05);
}

.status-pre_registration { background: #9c27b0; }
.status-coming_soon { background: #2196f3; }
.status-new_release { background: #f44336; }
.status-released { background: #4caf50; }
.status-service_ended { background: #607d8b; }

.game-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.game-card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.game-card-title a:hover {
    color: var(--color-primary);
}

.game-meta-info {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.game-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.genre-tag {
    font-size: 11px;
    background: var(--color-bg-gray);
    color: var(--color-text-light);
    padding: 2px 8px;
    border: 1px solid var(--color-border);
}

.game-rating {
    margin-top: auto;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* News Archive Page */
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.news-card {
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
    align-self: flex-start;
}

.category-release { background: var(--color-accent); }
.category-update { background: #FF9900; }
.category-event { background: #9933FF; }
.category-campaign { background: #00bcd4; }
.category-esports { background: #607d8b; }
.category-industry { background: var(--color-primary); }
.category-other { background: #9ca3af; }
.category-record { background: #d97706; }

.news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-title a {
    color: var(--color-text);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: auto;
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}


/* Archive Pages Responsive */
@media screen and (max-width: 768px) {
    .archive-page-header {
        padding: 16px;
    }
    
    .archive-page-title {
        font-size: 20px;
    }
    
    .game-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 600px) {
    .game-card-title {
        font-size: 14px;
    }
    
    .news-title {
        font-size: 14px;
    }
    
    .pagination-wrapper .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}
