/* ============================================
   Myskie.com — Visual Design System v2
   Rounded, gradient-rich, spacious layout
   Font: Nunito (Google Fonts)
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f3ff;
    color: #1e1b4b;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul, ol { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   HEADER — Single-row compact with pill nav
   ============================================ */

.ms-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    border-radius: 0 0 20px 20px;
}

.ms-topbar {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 16px;
}

.ms-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.ms-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
}

.ms-brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Pill navigation */
.ms-nav-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    justify-content: center;
}

.ms-nav-pills::-webkit-scrollbar { display: none; }

.ms-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.ms-nav-pill:hover {
    background: #ede9fe;
    color: #6366f1;
    opacity: 1;
}

.ms-nav-pill.ms-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

/* Header actions */
.ms-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ms-search-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: #f5f3ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ms-search-toggle:hover {
    background: #ede9fe;
}

.ms-search-toggle img {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.ms-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.ms-menu-btn img { width: 22px; height: 22px; }

/* Mobile nav overlay */
.ms-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.4);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.ms-nav-overlay.ms-visible { display: block; }

.ms-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 999;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
}

.ms-mobile-nav.ms-open { right: 0; }

.ms-mobile-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.ms-mobile-nav a:hover {
    background: #ede9fe;
    color: #6366f1;
}

.ms-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f5f3ff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-mobile-close img { width: 20px; height: 20px; }

/* ============================================
   CONTAINER
   ============================================ */

.ms-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SECTION TITLES — Left accent bar
   ============================================ */

.ms-sec-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 40px 0 20px;
    padding-left: 16px;
    border-left: 4px solid #6366f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-sec-title span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-sec-title .ms-sec-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #8b5cf6;
    padding: 5px 14px;
    background: #ede9fe;
    border-radius: 14px;
    transition: all 0.2s;
}

.ms-sec-title .ms-sec-link:hover {
    background: #6366f1;
    color: #ffffff;
    opacity: 1;
}

/* ============================================
   GAME CARD — Overlay style
   ============================================ */

.ms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

.ms-card {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
}

.ms-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.ms-card a { display: block; }

.ms-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.ms-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ms-card:hover .ms-card-thumb img {
    transform: scale(1.08);
}

/* Overlay gradient + text on thumbnail */
.ms-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 12px 10px;
    background: linear-gradient(to top, rgba(30, 27, 75, 0.85) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ms-card-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-card-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy label support */
.ms-card-label {
    padding: 10px 12px;
}

.ms-card-label p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e1b4b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.ms-card-label .ms-card-type {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ============================================
   HORIZONTAL GAME CARD
   ============================================ */

.ms-hcard {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 14px;
}

.ms-hcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.ms-hcard-thumb {
    width: 180px;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.ms-hcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-hcard-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ms-hcard-body h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.ms-hcard-body p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-hcard-body .ms-hcard-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.ms-hcard-body .ms-hcard-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   GAME DETAIL PAGE
   ============================================ */

.ms-detail-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    padding: 40px 0 48px;
    margin-bottom: 32px;
}

.ms-detail-top {
    display: flex;
    gap: 36px;
    align-items: center;
}

.ms-detail-poster {
    flex-shrink: 0;
    width: 220px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ms-detail-poster img {
    width: 100%;
    border-radius: 18px;
}

.ms-detail-info { flex: 1; color: #ffffff; }

.ms-detail-info h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ms-detail-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ms-detail-meta span {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.ms-detail-meta .ms-detail-type {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.ms-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: #ffffff;
    color: #6366f1;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ms-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #f5f3ff;
}

/* Guide section */
.ms-guide-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.ms-guide-section h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid #8b5cf6;
}

.ms-guide-section p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.85;
}

/* How to Play Steps (dynamic) */
.ms-htp-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.ms-htp-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: #f8f7ff;
    border-radius: 12px;
    border-left: 3px solid #8b5cf6;
}

.ms-htp-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
}

.ms-htp-steps li p {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

.ms-htp-tips-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 12px;
    padding-top: 4px;
}

.ms-htp-tips {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-htp-tips li {
    position: relative;
    padding: 12px 16px 12px 36px;
    background: #fffbeb;
    border-radius: 10px;
    font-size: 0.84rem;
    color: #92400e;
    line-height: 1.65;
    border-left: 3px solid #f59e0b;
}

.ms-htp-tips li::before {
    content: '\1F4A1';
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 0.82rem;
}

/* Iframe */
.ms-iframe-box {
    width: 100%;
    height: 72vh;
    min-height: 500px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.ms-iframe-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.ms-more-section { margin-top: 40px; }

/* ============================================
   DETAIL — Breadcrumb
   ============================================ */

.ms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    flex-wrap: wrap;
}

.ms-breadcrumb a {
    color: #8b5cf6;
    transition: color 0.2s;
}

.ms-breadcrumb a:hover {
    color: #6366f1;
    opacity: 1;
}

.ms-breadcrumb .ms-bc-sep {
    color: #cbd5e1;
    font-size: 0.65rem;
}

.ms-breadcrumb .ms-bc-current {
    color: #64748b;
    font-weight: 700;
}

/* ============================================
   DETAIL — Game Info Strip
   ============================================ */

.ms-game-info-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
    margin-bottom: 28px;
}

.ms-gis-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    border-right: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.ms-gis-item:last-child { border-right: none; }

.ms-gis-item:hover { background: #faf5ff; }

.ms-gis-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.ms-gis-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ms-gis-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e1b4b;
}

/* ============================================
   DETAIL — Game Features Grid
   ============================================ */

.ms-game-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.ms-gf-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.05);
    transition: all 0.25s ease;
}

.ms-gf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.ms-gf-card:nth-child(1) { border-top: 3px solid #6366f1; }
.ms-gf-card:nth-child(2) { border-top: 3px solid #f59e0b; }
.ms-gf-card:nth-child(3) { border-top: 3px solid #10b981; }
.ms-gf-card:nth-child(4) { border-top: 3px solid #ec4899; }

.ms-gf-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1;
}

.ms-gf-card h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 6px;
}

.ms-gf-card p {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ============================================
   DETAIL — FAQ Section
   ============================================ */

.ms-detail-faq {
    margin-bottom: 36px;
}

.ms-detail-faq-item {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05);
    overflow: hidden;
}

.ms-detail-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e1b4b;
    transition: background 0.2s;
    gap: 12px;
}

.ms-detail-faq-q:hover {
    background: #faf5ff;
}

.ms-detail-faq-q .ms-faq-toggle {
    font-size: 1.2rem;
    color: #8b5cf6;
    transition: transform 0.3s;
    flex-shrink: 0;
    font-weight: 400;
}

.ms-detail-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
}

.ms-detail-faq-item.ms-open .ms-detail-faq-a {
    max-height: 300px;
    padding: 0 22px 18px;
}

.ms-detail-faq-item.ms-open .ms-faq-toggle {
    transform: rotate(45deg);
}

.ms-detail-faq-a p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.75;
}

/* ============================================
   DETAIL — Tags Section
   ============================================ */

.ms-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ms-game-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #ede9fe;
    border-radius: 16px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6366f1;
    transition: all 0.2s;
}

.ms-game-tag:hover {
    background: #6366f1;
    color: #ffffff;
}

/* ============================================
   CONTENT / LEGAL PAGES
   ============================================ */

.ms-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.ms-page h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.ms-page .ms-page-date {
    color: #94a3b8;
    font-size: 0.86rem;
    margin-bottom: 32px;
}

.ms-page h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #312e81;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 4px solid #a78bfa;
}

.ms-page p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.ms-page ul {
    margin: 12px 0 20px 22px;
    list-style: disc;
}

.ms-page ul li {
    color: #475569;
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.ms-page strong { color: #1e1b4b; }

.ms-page a {
    color: #6366f1;
    text-decoration: underline;
}

.ms-faq-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.05);
}

.ms-faq-item h3 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 8px;
}

.ms-faq-item p {
    margin: 0;
    color: #64748b;
}

/* ============================================
   FOOTER — Light gradient
   ============================================ */

.ms-footer {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
    padding: 48px 24px 24px;
    margin-top: 56px;
    border-radius: 24px 24px 0 0;
}

.ms-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ms-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.ms-footer-brand p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 300px;
}

.ms-footer-col h4 {
    font-size: 0.78rem;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.ms-footer-col a {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.2s;
}

.ms-footer-col a:hover {
    color: #6366f1;
    opacity: 1;
}

.ms-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ============================================
   SCROLL TO TOP — Round gradient
   ============================================ */

.ms-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ms-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.ms-scroll-top:hover img {
    filter: brightness(0) invert(1);
}

.ms-scroll-top img {
    width: 18px;
    height: 18px;
}

/* ============================================
   CHANNEL / CATEGORY PAGE
   ============================================ */

.ms-channel-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
    padding: 36px 24px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    margin-bottom: 0;
}

.ms-channel-banner h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
}

.ms-channel-banner p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
}

.ms-channel-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    font-weight: 700;
}

/* Category tabs bar */
.ms-channel-tabs {
    display: flex;
    gap: 6px;
    padding: 16px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1280px;
    margin: 0 auto;
}

.ms-channel-tabs::-webkit-scrollbar { display: none; }

.ms-channel-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    border-radius: 18px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.06);
}

.ms-channel-tab:hover {
    background: #ede9fe;
    color: #6366f1;
}

.ms-channel-tab.ms-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Legacy sidebar support */
.ms-channel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
}

.ms-channel-side {
    display: none;
}

.ms-channel-main {
    min-width: 0;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

@media (max-width: 1024px) {
    .ms-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .ms-nav-pills { display: none; }
    .ms-menu-btn { display: flex; }
    .ms-mobile-nav { display: block; }

    .ms-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .ms-detail-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ms-detail-poster { width: 200px; }
    .ms-detail-meta { justify-content: center; }

    .ms-hcard-thumb { width: 140px; }

    .ms-game-features { grid-template-columns: repeat(2, 1fr); }
    .ms-gis-item { padding: 16px 8px; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */

@media (max-width: 768px) {
    .ms-topbar { padding: 8px 16px; }
    .ms-brand-icon { width: 32px; height: 32px; }
    .ms-brand-name { font-size: 1.2rem; }

    .ms-container { padding: 0 16px; }

    .ms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .ms-detail-banner { padding: 28px 0 36px; }
    .ms-detail-poster { width: 160px; }
    .ms-detail-info h1 { font-size: 1.4rem; }

    .ms-iframe-box { height: 52vh; min-height: 340px; }

    .ms-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ms-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .ms-channel-banner { padding: 28px 16px; }
    .ms-channel-banner h1 { font-size: 1.3rem; }

    .ms-hcard { flex-direction: column; }
    .ms-hcard-thumb { width: 100%; min-height: 160px; }

    .ms-scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

    .ms-game-info-strip { flex-wrap: wrap; }
    .ms-gis-item { flex: 0 0 33.33%; padding: 14px 8px; }
    .ms-gis-item:nth-child(4) { flex: 0 0 100%; }
    .ms-game-features { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ms-gf-card { padding: 18px 12px; }
    .ms-breadcrumb { padding: 12px 0 0; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .ms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ms-card-overlay { padding: 24px 8px 8px; }
    .ms-card-name { font-size: 0.72rem; }
}

/* Legal pages mobile */
@media (max-width: 768px) {
    .ms-page { padding: 28px 16px 48px; }
    .ms-page h1 { font-size: 1.6rem; }
    .ms-page h2 { font-size: 1.05rem; }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog listing */
.ms-blog-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    padding: 64px 0 48px;
    text-align: center;
    color: #fff;
}

.ms-blog-hero h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.ms-blog-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.ms-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.ms-blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.ms-blog-card-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ms-blog-card-body {
    padding: 24px;
}

.ms-blog-card-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ms-blog-card-body h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ms-blog-card-body p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

.ms-blog-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.ms-blog-read-more:hover {
    opacity: 0.85;
}

/* Blog post page */
.ms-blog-post {
    background: #ffffff;
    border-radius: 18px;
    padding: 48px;
    margin: 40px 0;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.ms-blog-post-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ms-blog-post h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e1b4b;
    line-height: 1.35;
    margin-bottom: 20px;
}

.ms-blog-post .ms-blog-lead {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #ede9fe;
}

.ms-blog-post h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid #8b5cf6;
}

.ms-blog-post h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #334155;
    margin: 24px 0 12px;
}

.ms-blog-post p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 16px;
}

.ms-blog-post ul,
.ms-blog-post ol {
    margin: 16px 0;
    padding-left: 24px;
}

.ms-blog-post li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 8px;
}

.ms-blog-post strong {
    color: #1e1b4b;
}

.ms-blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.ms-blog-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f5f3ff;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #6366f1;
    transition: all 0.2s;
}

.ms-blog-nav a:hover {
    background: #6366f1;
    color: #fff;
}

@media (max-width: 1024px) {
    .ms-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ms-blog-grid { grid-template-columns: 1fr; }
    .ms-blog-post { padding: 28px 18px; }
    .ms-blog-post h1 { font-size: 1.4rem; }
    .ms-blog-hero h1 { font-size: 1.5rem; }
}

/* Game Review Cards */
.ms-review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.06);
    border-left: 4px solid #8b5cf6;
}

.ms-review-card:nth-child(even) { border-left-color: #6366f1; }

.ms-review-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ms-review-score {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f59e0b;
    white-space: nowrap;
}

.ms-review-meta {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ms-review-card p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 10px;
}

.ms-review-card a {
    color: #6366f1;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ms-review-card { padding: 20px 16px; }
    .ms-review-card h3 { font-size: 0.95rem; }
}
