/* ================================================
   Template: new — Warm Inviting Style
   Responsive, adaptive, friendly & approachable
   ================================================ */

/* --- Design Tokens --- */
:root {
    --c-bg: #FFF9F3;
    --c-surface: #FFFFFF;
    --c-card: #FFFFFF;
    --c-card-hover: #FFF7ED;
    --c-border: #E8DDD4;
    --c-border-light: #F3ECE5;

    --c-text: #2D1810;
    --c-text-secondary: #7A6B63;
    --c-text-muted: #A89890;

    --c-accent: #F97316;
    --c-accent-hover: #EA580C;
    --c-accent-dim: rgba(249, 115, 22, 0.1);

    --c-link: #C2410C;
    --c-link-hover: #9A3412;

    --c-gold: #D97706;
    --c-gold-dim: rgba(217, 119, 6, 0.1);

    --c-warm: #FED7AA;

    --c-shadow: 0 2px 8px rgba(180, 140, 100, 0.08);
    --c-shadow-hover: 0 8px 24px rgba(180, 140, 100, 0.16);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.2s;

    --container: 1240px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--c-link); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--c-link-hover); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--c-text); }
input, button, textarea, select { font: inherit; color: inherit; }

/* --- Utilities --- */
.fn-clear::after { content: ''; display: table; clear: both; }
.fn-left { float: left; }
.fn-right { float: right; }

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    gap: 20px;
}
#logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
#logo a:hover { opacity: 0.8; }
#logo img { max-height: 36px; }

/* Search */
.search-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-box form { display: flex; align-items: center; gap: 0; }
.search-box input[type="text"] {
    padding: 9px 16px;
    background: var(--c-bg);
    border: 2px solid var(--c-border);
    border-right: none;
    border-radius: 24px 0 0 24px;
    color: var(--c-text);
    font-size: 14px;
    width: 220px;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}
.search-box input[type="text"]:focus { border-color: var(--c-accent); }
.search-box input[type="text"]::placeholder { color: var(--c-text-muted); }
.search-box button {
    padding: 9px 20px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 0 24px 24px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}
.search-box button:hover { background: var(--c-accent-hover); }
.hot-words { display: none; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--c-text);
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    margin: 5px 0;
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

/* ===================================
   NAVIGATION
   =================================== */
.main-nav {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}
.main-nav .container {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-nav .container::-webkit-scrollbar { display: none; }
.main-nav ul.nav-list {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.main-nav li a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    height: 48px;
    font-size: 15px;
    color: var(--c-text-secondary);
    white-space: nowrap;
    position: relative;
    transition: color var(--duration) var(--ease);
    font-weight: 500;
}
.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}
.main-nav li a:hover,
.main-nav li.current a {
    color: var(--c-accent);
    text-decoration: none;
}
.main-nav li.current a::after,
.main-nav li a:hover::after {
    transform: scaleX(1);
}

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-accent);
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--c-text);
}
.section-title a {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    color: var(--c-text-muted);
}
.section-title a:hover { color: var(--c-accent); }

/* ===================================
   VIDEO GRID
   =================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (min-width: 480px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
}
@media (min-width: 768px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
@media (min-width: 1200px) {
    .video-grid { grid-template-columns: repeat(6, 1fr); }
}

.video-item {
    background: var(--c-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--c-shadow);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    cursor: pointer;
}
.video-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--c-shadow-hover);
}
.video-item a { display: block; color: var(--c-text); }
.video-item a:hover { text-decoration: none; }
.thumb-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #F0E8E0;
}
.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.video-item:hover .thumb-wrap img { transform: scale(1.08); }
.video-item .info { padding: 10px 12px 14px; }
.video-item .info h3 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.video-item .info .meta {
    font-size: 11px;
    color: var(--c-text-muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Badge on thumbnail */
.video-item .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--c-accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--c-text-muted);
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { margin: 0 6px; }

/* ===================================
   FILTER BAR
   =================================== */
.filter-bar {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--c-shadow);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--c-border-light);
    gap: 8px;
}
.filter-row:last-child { border-bottom: none; }
.filter-row label {
    color: var(--c-text-muted);
    min-width: 50px;
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 13px;
}
.filter-row .options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.filter-row .options a {
    padding: 4px 12px;
    border-radius: 16px;
    color: var(--c-text-secondary);
    font-size: 13px;
    transition: all var(--duration) var(--ease);
}
.filter-row .options a:hover {
    background: var(--c-accent-dim);
    color: var(--c-accent);
    text-decoration: none;
}
.filter-row .options a.current {
    background: var(--c-accent);
    color: #fff;
}

/* Sort bar */
.sort-bar {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 14px;
}
.sort-bar a { color: var(--c-text-muted); transition: color var(--duration) var(--ease); }
.sort-bar a:hover,
.sort-bar a.current {
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ===================================
   CHANNEL LAYOUT (type page)
   =================================== */
.channel-layout {
    display: flex;
    gap: 24px;
}
.channel-main { flex: 1; min-width: 0; }
.channel-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Rankings */
.ranking-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--c-shadow);
}
.ranking-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-accent-dim);
}
.ranking-list li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    gap: 8px;
}
.ranking-list li .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    background: var(--c-bg);
    color: var(--c-text-muted);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 600;
}
.ranking-list li:nth-child(1) .rank { background: var(--c-accent); color: #fff; }
.ranking-list li:nth-child(2) .rank { background: var(--c-gold); color: #fff; }
.ranking-list li:nth-child(3) .rank { background: #D97706; color: #fff; }
.ranking-list li a {
    color: var(--c-text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ranking-list li a:hover { color: var(--c-accent); }
.ranking-list li .count {
    color: var(--c-text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

/* ===================================
   DETAIL PAGE
   =================================== */
.detail-header {
    display: flex;
    align-items: stretch;
    gap: 28px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--c-shadow);
}
.detail-poster {
    flex-shrink: 0;
    width: 200px;
}
.detail-poster img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Score */
.score-box {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}
.score-box .score-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--c-gold);
}
.score-box .score-star {
    font-size: 14px;
    color: var(--c-text-muted);
}

.detail-blurb {
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-text-secondary);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-meta { font-size: 14px; }
.detail-meta dl {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.detail-meta dt {
    color: var(--c-text-muted);
    min-width: 50px;
    flex-shrink: 0;
}
.detail-meta dd { color: var(--c-text-secondary); }
.detail-meta dd a { color: var(--c-text-secondary); }
.detail-meta dd a:hover { color: var(--c-accent); }

.detail-blurb {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.8;
}

/* Play button */
.detail-actions {
    margin-top: 18px;
    margin-bottom: 14px;
}
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 44px;
    background: var(--c-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 28px;
    letter-spacing: 0.5px;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}
.btn-play::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #fff;
}
.btn-play:hover {
    background: var(--c-accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
}
.btn-play:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* ===================================
   DETAIL TABS
   =================================== */
.detail-tabs {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--c-shadow);
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--c-border);
    background: var(--c-bg);
}
.tab-btn {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-muted);
    cursor: pointer;
    position: relative;
    transition: color var(--duration) var(--ease);
}
.tab-btn:hover { color: var(--c-text); }
.tab-btn.active {
    color: var(--c-accent);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--c-accent);
    border-radius: 3px 3px 0 0;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.tab-content {
    padding: 24px;
}
.seo-intro {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--c-border);
}

/* ===================================
   PLAY LIST
   =================================== */
.play-list {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--c-shadow);
}
.play-list h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-accent-dim);
}
.play-list h2 span {
    font-size: 12px;
    color: var(--c-text-muted);
    font-weight: 400;
}
.episode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.episode-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--c-text-secondary);
    transition: all var(--duration) var(--ease);
    min-width: 48px;
}
.episode-links a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-dim);
    text-decoration: none;
}
.episode-links a.cur {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

/* ===================================
   PLAYER
   =================================== */
.player-box {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.player-box iframe,
.player-box video,
.player-box object,
.player-box embed {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

/* Player nav */
.player-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 16px;
}
.player-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 28px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--c-text-secondary);
    font-weight: 500;
    transition: all var(--duration) var(--ease);
}
.player-nav .nav-link:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    text-decoration: none;
}
.player-nav .nav-link.disabled {
    color: var(--c-text-muted);
    pointer-events: none;
    opacity: 0.4;
}

/* ===================================
   SEARCH RESULTS
   =================================== */
.search-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border-light);
}
.search-item .thumb {
    width: 110px;
    flex-shrink: 0;
}
.search-item .thumb img {
    width: 100%;
    border-radius: var(--radius-md);
}
.search-item .info h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.search-item .info h2 a { color: var(--c-text); }
.search-item .info h2 a:hover { color: var(--c-accent); }
.search-item .info .meta {
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 2;
}
.search-item .info .meta dl { display: flex; gap: 6px; }
.search-item .info .meta dt { color: var(--c-text-muted); }
.search-item .info .desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* ===================================
   CONTENT BOX
   =================================== */
.content-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--c-shadow);
}
.content-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-accent-dim);
}

/* ===================================
   PAGINATION
   =================================== */
.mac_pages { text-align: center; padding: 28px 0; font-size: 14px; }
.mac_pages .page_tip {
    color: var(--c-text-muted);
    margin-bottom: 12px;
    font-size: 13px;
}
.mac_pages .page_info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mac_pages .page_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-secondary);
    font-size: 13px;
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
}
.mac_pages .page_link:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    text-decoration: none;
}
.mac_pages .page_current {
    background: var(--c-accent) !important;
    border-color: var(--c-accent) !important;
    color: #fff !important;
    pointer-events: none;
}
.mac_pages .page_input {
    width: 48px;
    height: 36px;
    padding: 0 6px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
    color: var(--c-text);
    outline: none;
}
.mac_pages .page_input:focus { border-color: var(--c-accent); }
.mac_pages .page_btn {
    height: 36px;
    padding: 0 16px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--duration) var(--ease);
}
.mac_pages .page_btn:hover { background: var(--c-accent-hover); }

.list-page { margin-top: 8px; }

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    border-top: 1px solid var(--c-border);
    padding: 32px 0;
    margin-top: 48px;
    text-align: center;
    color: var(--c-text-muted);
    font-size: 13px;
    background: var(--c-surface);
}
.foot-links {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.foot-links a { color: var(--c-text-muted); }
.foot-links a:hover { color: var(--c-accent); }
.copyright { line-height: 1.8; }

/* ===================================
   COMMENTS
   =================================== */
.mac_comment { min-height: 100px; }
.cmt_item { padding: 12px 0; border-bottom: 1px solid var(--c-border-light); }
.cmt_item .face_wrap { display: none; }
.cmt_item .item_con { width: 100%; }
.cmt_item .top {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}
.cmt_item .top .name { color: var(--c-text-secondary); font-weight: 500; }
.cmt_item .con {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.6;
}
.comment_form { margin-bottom: 16px; }
.comment_form textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    resize: vertical;
    color: var(--c-text);
    outline: none;
}
.comment_form textarea:focus { border-color: var(--c-accent); }
.comment_form textarea::placeholder { color: var(--c-text-muted); }
.comment_submit {
    margin-top: 8px;
    padding: 8px 20px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.comment_submit:hover { background: var(--c-accent-hover); }

/* ===================================
   SCORE / STAR
   =================================== */
.mac_score {
    padding: 12px 0;
    font-size: 14px;
    color: var(--c-text-secondary);
}
.mac_score strong { color: var(--c-text); }
.mac_score input[type="radio"] { margin-right: 2px; }
.mac_score .score_btn {
    margin-left: 8px;
    padding: 4px 16px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
}
.mac_star dt { display: none; }
.mac_star dd { display: flex; align-items: center; gap: 6px; }
.mac_star .star_tips { color: var(--c-gold); font-size: 16px; font-weight: 700; }
#rating { padding: 12px 0; }
#rating .label { font-size: 13px; color: var(--c-text-muted); }
#rating ul.rating {
    display: inline-flex;
    gap: 4px;
    margin: 0 8px;
}
#rating ul.rating li {
    padding: 4px 10px;
    font-size: 13px;
    color: var(--c-text-muted);
    cursor: pointer;
    border-radius: 16px;
    transition: all var(--duration) var(--ease);
}
#rating ul.rating li.active,
#rating ul.rating li:hover { color: var(--c-gold); background: var(--c-gold-dim); }
#ratewords { font-size: 13px; color: var(--c-gold); }

/* ===================================
   FRIENDLY LINKS
   =================================== */
.friend-links {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
}
.friend-links h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--c-text-muted);
}
.friend-links div { font-size: 13px; color: var(--c-text-muted); line-height: 2; }
.friend-links a { color: var(--c-text-muted); margin-right: 8px; }
.friend-links a:hover { color: var(--c-accent); }

/* ===================================
   MSG / JUMP PAGES
   =================================== */
.mac_msg_jump {
    max-width: 420px;
    margin: 120px auto;
    padding: 40px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--c-shadow-hover);
}
.mac_msg_jump .msg_jump_tit {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--c-text);
}
.mac_msg_jump .title { font-size: 14px; color: var(--c-text-muted); margin-bottom: 12px; }
.mac_msg_jump .text { font-size: 16px; color: var(--c-text); margin-bottom: 20px; line-height: 1.6; }
.mac_msg_jump .jump { font-size: 13px; color: var(--c-text-muted); }
.mac_msg_jump .jump a { color: var(--c-accent); }
.mac_msg_jump .jump b { color: var(--c-accent); }

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablet: <= 900px */
@media (max-width: 900px) {
    .channel-layout {
        flex-direction: column;
    }
    .channel-sidebar {
        width: 100%;
    }
    .detail-header {
        gap: 20px;
    }
    .detail-info {
        width: 240px;
    }
    .detail-info h1 {
        font-size: 22px;
    }
}

/* Mobile: <= 600px */
@media (max-width: 600px) {
    .header-inner {
        height: 56px;
    }
    #logo a { font-size: 18px; }
    .search-box input[type="text"] { width: 140px; font-size: 13px; padding: 7px 12px; }
    .search-box button { padding: 7px 14px; font-size: 13px; }
    .menu-toggle { display: none; }

    .main-nav li a {
        padding: 0 12px;
        font-size: 14px;
    }
    .main-nav li a::after { display: none; }
    .main-nav li a:hover,
    .main-nav li.current a { color: var(--c-accent); }

    .video-grid { gap: 10px; }
    .section-title { font-size: 17px; margin: 28px 0 16px; }

    .detail-header {
        padding: 16px;
        gap: 12px;
    }
    .detail-poster {
        width: 140px;
    }
    .detail-poster img {
        width: 140px;
        height: 195px;
    }
    .detail-info {
        flex: 1;
        min-width: 0;
    }
    .detail-info h1 { font-size: 18px; }
    .detail-meta dl { font-size: 12px; }
    .detail-meta dt { min-width: 40px; }
    .score-box .score-num { font-size: 24px; }
    .btn-play { padding: 10px 28px; font-size: 14px; }

    .search-item {
        flex-direction: column;
        gap: 12px;
    }
    .search-item .thumb { width: 100%; }
    .search-item .thumb img { max-width: 200px; }

    .filter-bar { padding: 14px; }
    .filter-row { flex-direction: column; gap: 4px; }
    .filter-row label { min-width: auto; padding: 0; }
    .filter-row .options { gap: 2px; }
    .filter-row .options a { padding: 3px 8px; font-size: 12px; }

    .player-box iframe,
    .player-box video,
    .player-box object,
    .player-box embed {
        min-height: 220px;
    }
}

/* Very small: <= 375px */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .search-box input[type="text"] { width: 110px; }
    .video-item .info { padding: 6px 6px 8px; }
    .video-item .info h3 { font-size: 12px; }
}
