/* AI Insight - Video Detail Page Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #fafaf9;
    --card: #ffffff;
    --bg-alt: #f5f5f4;
    --text: #1c1917;
    --text-secondary: #57534e;
    --text-tertiary: #78716c;
    --border: #e7e5e4;
    --accent: #c4956a;
    --accent-soft: #d4a574;
    --green: #16a34a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --pink: #db2777;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(196,149,106,0.06) 0%, transparent 70%);
}
.hero-tags { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.hero-tag {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-tag.yc { background: rgba(196,149,106,0.12); color: var(--accent); }
.hero-tag.series { background: rgba(196,149,106,0.12); color: var(--accent); }
.hero-tag.date { background: rgba(0,0,0,0.04); color: var(--text-secondary); }
.hero h1 {
    font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 700px; margin: 0 auto 40px; line-height: 1.6; }

/* Video */
.video-wrapper {
    position: relative; padding-bottom: 56.25%; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08); margin-bottom: 32px;
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Meta bar */
.meta-bar {
    display: flex; justify-content: center; gap: 32px; padding: 20px 0; margin-bottom: 60px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meta-item { text-align: center; }
.meta-label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; }
.meta-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* Section */
h2 {
    font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 60px 0 24px;
    display: flex; align-items: center; gap: 12px;
}
h2 .icon { font-size: 20px; }
.section-desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; max-width: 800px; }

/* Key insight */
.key-insight {
    background: linear-gradient(135deg, rgba(196,149,106,0.08) 0%, rgba(196,149,106,0.04) 100%);
    border: 1px solid rgba(196,149,106,0.18); border-radius: 16px; padding: 28px 32px; margin: 32px 0;
}
.key-insight p { color: var(--text); font-size: 16px; font-weight: 500; margin: 0; }

/* Quote */
.quote-block {
    background: var(--card); border-left: 3px solid var(--accent);
    padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.quote-block.green { border-left-color: var(--green); }
.quote-block.blue { border-left-color: var(--blue); }
.quote-block.purple { border-left-color: var(--purple); }
.quote-block.pink { border-left-color: var(--pink); }
.quote-block p { color: var(--text); font-style: italic; margin: 0 0 8px; font-size: 15px; }
.quote-author { font-size: 13px; color: var(--text-tertiary); font-style: normal; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 24px 0; }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover { background: var(--bg-alt); border-color: rgba(196,149,106,0.3); }
.card-num {
    display: inline-block; width: 28px; height: 28px; border-radius: 8px;
    background: rgba(196,149,106,0.12); color: var(--accent); font-size: 13px; font-weight: 700;
    text-align: center; line-height: 28px; margin-bottom: 12px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.card.green .card-num { background: rgba(22,163,74,0.1); color: var(--green); }
.card.blue .card-num { background: rgba(37,99,235,0.1); color: var(--blue); }
.card.purple .card-num { background: rgba(124,58,237,0.1); color: var(--purple); }
.card.pink .card-num { background: rgba(219,39,119,0.1); color: var(--pink); }

/* Chapters */
.chapters { margin: 24px 0; }
.chapter-item {
    display: flex; align-items: center; gap: 16px; padding: 12px 16px;
    border-radius: 10px; transition: background 0.2s; cursor: pointer;
}
.chapter-item:hover { background: var(--bg-alt); }
.chapter-time {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
    color: var(--accent); background: rgba(196,149,106,0.1); padding: 4px 10px;
    border-radius: 6px; min-width: 60px; text-align: center;
}
.chapter-title { font-size: 14px; font-weight: 500; color: var(--text); }

/* Timestamp */
.ts {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent);
    background: rgba(196,149,106,0.1); padding: 2px 6px; border-radius: 4px;
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, rgba(196,149,106,0.06) 0%, rgba(196,149,106,0.03) 100%);
    border: 1px solid rgba(196,149,106,0.15); border-radius: 16px;
    padding: 32px; margin: 48px 0;
}
.conclusion h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.conclusion p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin: 0; }

/* Guest cards */
.guest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.guest-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.guest-avatar {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.guest-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.guest-role { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.guest-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }

/* Footer */
.footer {
    margin-top: 80px; padding: 32px 0; border-top: 1px solid var(--border);
    text-align: center; font-size: 13px; color: var(--text-tertiary);
}
.footer a { color: var(--accent); }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
    color: var(--text-tertiary); margin-bottom: 20px; transition: color 0.2s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* Login Wall */
.login-wall {
    position: relative; margin: 0; padding: 60px 32px 48px; text-align: center;
    background: var(--bg);
}
.login-wall::before {
    content: ''; position: absolute; top: -160px; left: 0; right: 0; height: 160px;
    background: linear-gradient(180deg, rgba(250,250,249,0) 0%, var(--bg) 100%);
    pointer-events: none;
}
.login-wall-card {
    max-width: 420px; margin: 0 auto; padding: 36px 32px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.03);
}
.login-wall h3 {
    font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.login-wall p {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6;
}
.login-wall .login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 28px; background: var(--accent); color: #fff;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: all 0.2s; text-decoration: none; width: 100%; justify-content: center;
}
.login-wall .login-btn:hover { background: var(--accent-soft); text-decoration: none; }
.login-wall .login-btn svg { width: 18px; height: 18px; }

/* Login Wall - SMS Login */
.lw-divider {
    display: flex; align-items: center; gap: 16px;
    margin: 20px 0; color: var(--text-tertiary); font-size: 13px;
}
.lw-divider::before, .lw-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.lw-tabs {
    display: flex; gap: 0; margin-bottom: 12px; max-width: 380px; margin-left: auto; margin-right: auto;
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 12px;
}
.lw-tab {
    flex: 1; padding: 8px; background: var(--bg); border: none;
    font-size: 13px; font-family: inherit; cursor: pointer;
    color: var(--text-secondary); font-weight: 500; transition: all 0.15s;
}
.lw-tab.lw-tab-active { background: var(--accent); color: #fff; }
.lw-tab:not(.lw-tab-active):hover { background: var(--card); }
.lw-email, .lw-sms {
    max-width: 380px; margin: 0 auto; text-align: left;
}
.lw-sms-row {
    display: flex; gap: 8px; margin-bottom: 10px;
}
.lw-prefix {
    display: flex; align-items: center; padding: 0 10px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; font-size: 13px; color: var(--text-secondary);
    font-weight: 500; white-space: nowrap;
}
.lw-input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    background: var(--card); color: var(--text);
    outline: none; transition: border-color 0.15s;
}
.lw-input:focus { border-color: var(--accent); }
.lw-input::placeholder { color: var(--text-tertiary); }
.lw-send-btn {
    padding: 8px 14px; background: var(--card);
    border: 1px solid var(--accent); color: var(--accent);
    border-radius: 8px; font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: all 0.15s; min-width: 100px;
}
.lw-send-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.lw-send-btn:disabled {
    border-color: var(--border); color: var(--text-tertiary);
    cursor: not-allowed; background: var(--bg);
}
.lw-code-row { display: none; }
.lw-code-row.lw-code-visible { display: flex; }
.lw-submit-btn {
    width: 100%; padding: 10px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: background 0.15s;
    display: none; margin-top: 4px;
}
.lw-submit-btn.lw-submit-visible { display: block; }
.lw-submit-btn:hover:not(:disabled) { background: var(--accent-soft); }
.lw-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lw-msg {
    font-size: 13px; margin-top: 8px; padding: 6px 10px;
    border-radius: 6px; display: none; text-align: center;
}
.lw-msg.lw-msg-visible { display: block; }
.lw-msg.lw-msg-error { background: #fef2f2; color: #dc2626; }
.lw-msg.lw-msg-success { background: #f0fdf4; color: #16a34a; }

@media (max-width: 768px) {
    .hero h1 { font-size: 26px; }
    .hero-desc { font-size: 15px; }
    .meta-bar { flex-wrap: wrap; gap: 16px; }
    .cards-grid { grid-template-columns: 1fr; }
    .guest-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 40px 0 30px; }
    .hero h1 { font-size: 22px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; }
    .hero-tags { gap: 6px; }
    .hero-tag { font-size: 10px; padding: 3px 8px; }

    /* Container */
    .container { padding: 0 16px; }

    /* Meta bar */
    .meta-bar { gap: 16px; padding: 14px 0; margin-bottom: 36px; }
    .meta-label { font-size: 10px; }
    .meta-value { font-size: 13px; }

    /* Sections */
    h2 { font-size: 20px; margin: 40px 0 16px; }
    .section-desc { font-size: 14px; }

    /* Key insight */
    .key-insight { padding: 20px 22px; margin: 20px 0; }
    .key-insight p { font-size: 14px; }

    /* Quote */
    .quote-block { padding: 16px 18px; }
    .quote-block p { font-size: 14px; }

    /* Cards */
    .cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 18px; }
    .card h3 { font-size: 15px; }
    .card p { font-size: 13px; }

    /* Chapters */
    .chapter-item { gap: 12px; padding: 10px 12px; }
    .chapter-time { font-size: 12px; min-width: 50px; padding: 3px 8px; }
    .chapter-title { font-size: 13px; }

    /* Conclusion */
    .conclusion { padding: 24px 20px; margin: 36px 0; }
    .conclusion h3 { font-size: 16px; }
    .conclusion p { font-size: 14px; }

    /* Guest grid */
    .guest-grid { grid-template-columns: 1fr; }
    .guest-card { padding: 18px; }

    /* Footer */
    .footer { margin-top: 48px; padding: 24px 0; }

    /* Login wall */
    .login-wall { padding: 28px 16px; }
    .login-wall h3 { font-size: 17px; }
    .login-wall p { font-size: 13px; }
    .login-wall .login-btn { width: 100%; justify-content: center; padding: 10px; font-size: 13px; }
    .lw-tabs { margin-bottom: 10px; }
    .lw-tab { padding: 7px; font-size: 12px; }
    .lw-sms-row { flex-wrap: wrap; }
    .lw-input { padding: 9px 10px; font-size: 13px; }
    .lw-send-btn { min-width: 0; width: 100%; padding: 9px 12px; font-size: 12px; }
    .lw-prefix { padding: 0 8px; font-size: 12px; }
    .lw-submit-btn { padding: 9px; font-size: 13px; }
    .lw-msg { font-size: 12px; }
}
