/* ===============================
   YOU MMO — BASE STYLE
   =============================== */

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* BODY */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* LINKS */
a {
    text-decoration: none;
    color: #111;
    transition: .2s;
}

a:hover {
    color: #000;
    opacity: .8;
}

/* HEADINGS */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: 12px;
}

/* BUTTON */
.yoummo-btn,
button,
input[type="submit"] {
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: .2s;
    font-weight: 600;
    font-size: 15px;
}

.yoummo-btn:hover,
button:hover,
input[type="submit"]:hover {
    opacity: .85;
}

/* FORMS */
input[type="text"],
input[type="search"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    transition: .2s;
}

input:focus,
textarea:focus {
    border-color: #000;
    outline: none;
}

/* GRID SYSTEM */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.video-item {
    background: #ffffff;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    color: #111;
    line-height: 1.4;
}

.no-thumb {
    background: #f5f5f5;
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

/* BREADCRUMB */
.yoummo-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.yoummo-breadcrumb a {
    color: #444;
}

.yoummo-breadcrumb .current {
    color: #000;
    font-weight: 600;
}

/* SECTION TITLE */
.section-title {
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 700;
}

/* AD SLOTS */
.ad-slot {
    margin: 22px 0;
    text-align: center;
}

/* RELATED */
.related-section {
    margin-top: 40px;
}

.related-title {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
}

.related-item .related-name {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
}

.related-thumb img {
    border-radius: 8px;
}

/* SINGLE WRAPPER */
.single-wrapper {
    padding: 30px 0;
}

.single-title {
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* VIDEO EMBED */
.single-video {
    margin: 25px 0;
}

.video-embed iframe {
    width: 100%;
    border-radius: 10px;
}

/* CATEGORY */
.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

/* PAGINATION */
.pagination-wrap {
    margin-top: 30px;
    text-align: center;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 15px;
}

.pagination-wrap a:hover {
    border-color: #000;
}

/* FOOTER */
.yoummo-footer {
    margin-top: 40px;
    padding: 40px 0;
    background: #f8f8f8;
    color: #666;
}

.footer-menu,
.footer-links {
    list-style: none;
    margin-bottom: 14px;
}

.footer-menu li,
.footer-links li {
    display: inline-block;
    margin-right: 18px;
}

.footer-links a {
    font-size: 14px;
    color: #444;
}

.footer-links a:hover {
    opacity: .7;
}

/* COPYRIGHT */
.copyright {
    font-size: 14px;
    color: #888;
    margin-top: 12px;
}
/* CHANNEL PAGE */
.channel-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.channel-info-wrap {
    margin-top: -50px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.channel-header-inner {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.channel-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #fff;
}

.channel-meta {
    flex: 1;
    padding-bottom: 10px;
}

.channel-name {
    font-size: 24px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.verified-badge {
    color: #3498db;
    font-size: 16px;
}

.channel-stats {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-subscribe {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-subscribe:hover {
    background: #aa0000;
}

@media (max-width: 600px) {
    .channel-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .channel-info-wrap { margin-top: -60px; }
}
/* ===============================
   STYLE TRANG DASHBOARD
================================== */
.yoummo-dashboard-page {
    padding: 40px 0;
    background: #f5f7fa;
    min-height: 80vh;
}

.dashboard-layout {
    display: flex;
    gap: 30px;
}

/* Sidebar */
.dash-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-brief {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.dash-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid #eee;
}
.view-channel-link { font-size: 12px; color: #666; text-decoration: none; }

.dash-nav a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: 0.2s;
}
.dash-nav a:hover { background: #f9f9f9; }
.dash-nav a.active { background: #e8f0fe; color: #1a73e8; }
.dash-nav a.logout-link { color: #d32f2f; margin-top: 20px; border-top: 1px solid #eee; border-radius: 0; }

/* Content */
.dash-content { flex: 1; }
.content-header h2 { margin-top: 0; border-bottom: 2px solid #1a73e8; display: inline-block; padding-bottom: 5px; margin-bottom: 20px; }

.stats-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.stat-box { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-box.balance .num { font-size: 32px; font-weight: bold; color: #27ae60; margin-top: 10px; }

.withdraw-form .input-group { display: flex; gap: 10px; margin-top: 10px; }
.withdraw-form input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 5px; }
.withdraw-form button { background: #333; color: white; border: none; border-radius: 5px; cursor: pointer; }

.ym-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: 10px; overflow: hidden; }
.ym-table th { background: #f0f0f0; text-align: left; padding: 15px; }
.ym-table td { padding: 15px; border-bottom: 1px solid #eee; }
.ym-table .plus { color: green; font-weight: bold; }
.ym-table .minus { color: red; font-weight: bold; }

/* Form Settings */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.form-group input[type="text"], .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-save { padding: 10px 25px; background: #1a73e8; color: white; border: none; border-radius: 5px; cursor: pointer; }

/* ===============================
   STYLE TRANG TÀI KHOẢN (AUTH)
================================== */
.yoummo-auth-page { padding: 60px 0; background: #f9f9f9; min-height: 80vh; }
.auth-container { max-width: 800px; margin: 0 auto; text-align: center; }
.auth-title { font-size: 28px; margin-bottom: 5px; }
.auth-subtitle { color: #666; margin-bottom: 40px; }

.auth-grid { display: flex; gap: 40px; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left; }
.auth-box { flex: 1; }
.auth-box h2 { font-size: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }

.divider { display: flex; align-items: center; font-weight: bold; color: #ccc; font-size: 12px; }
.divider span { writing-mode: vertical-rl; text-orientation: mixed; }

.form-field { margin-bottom: 15px; }
.form-field label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 500; }
.form-field input { width: 100%; padding: 10px; border: 1px solid #eee; background: #f9f9f9; border-radius: 5px; }
.btn-auth { width: 100%; padding: 12px; border: none; border-radius: 5px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.btn-login { background: #333; color: #fff; }
.btn-register { background: #ff0050; color: #fff; }

.auth-alert { padding: 10px; border-radius: 5px; margin-bottom: 20px; background: #fee; color: #c00; text-align: left; }

@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; }
    .dash-sidebar { width: 100%; }
    .auth-grid { flex-direction: column; }
    .divider { display: none; }
}