html {
    background: #f5f2ef;
}

body.page-comic-detail-desktop {
    max-width: none;
    min-width: 1280px;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 153, 102, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(243, 71, 130, 0.08), transparent 30%),
        #f5f2ef;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #3f3632;
}

body.page-comic-detail-desktop a,
body.page-comic-detail-desktop a:visited {
    text-decoration: none;
}

.sdd-shell * {
    box-sizing: border-box;
}

.sdd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sdd-wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* TOPBAR */
.sdd-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, #171718 0%, #1e1d22 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.sdd-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.sdd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sdd-brand img {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    object-fit: cover;
}

.sdd-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sdd-brand-copy strong,
.sdd-brand-copy span {
    margin: 0;
    padding: 0;
}

.sdd-brand-copy strong {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.08em;
}

.sdd-brand-copy span {
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.sdd-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.sdd-nav a {
    padding: 0 4px 4px;
    color: rgba(255, 255, 255, 0.76);
    border-bottom: 2px solid transparent;
    transition: color .2s ease;
}

.sdd-nav a:hover,
.sdd-nav a.is-active {
    color: #fff;
}

.sdd-nav a.is-active {
    font-weight: 500;
    border-bottom-color: #ff9966;
}

.sdd-search-btn {
    display: inline-flex;
    align-items: center;
    width: 320px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    color: #8d7f78;
    font-size: 14px;
}

.sdd-search-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sdd-search-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MAIN CONTENT */
.sdd-section {
    padding: 32px 0 40px;
}

.sdd-card {
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    box-shadow: 0 16px 40px rgba(36, 29, 27, 0.06);
    padding: 24px 32px;
}

.sdd-hero-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: start;
}

.sdd-hero-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sdd-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
    background: linear-gradient(180deg, #f7ece6 0%, #f0d6ca 100%);
}

.sdd-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdd-tag-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffe7dd;
    color: #ff7d46;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.sdd-tag-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #faf7f4;
    color: #8d7f78;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.sdd-hero-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.sdd-actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdd-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #eadfd8;
    background: #faf7f4;
    font-size: 14px;
    font-weight: 500;
    color: #3f3632;
}

.sdd-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #3f3632;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sdd-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.sdd-meta-item {
    font-size: 14px;
    color: #8d7f78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdd-desc {
    margin: 0;
    font-size: 14px;
    line-height: 32px;
    color: #3f3632;
}

.sdd-actions-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sdd-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9966 0%, #ff7d46 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 14px 26px rgba(255, 125, 70, 0.22);
}

.sdd-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid #eadfd8;
    background: #ffffff;
    color: #3f3632;
    font-size: 14px;
    font-weight: 600;
}

.sdd-hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 153, 102, 0.14);
}

.sdd-hero-right h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3f3632;
}

.sdd-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid #eadfd8;
    background: #fff;
    overflow: hidden;
}

.sdd-qr-box canvas,
.sdd-qr-box img,
.sdd-qr-box svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
}

.sdd-qr-text {
    margin: 0;
    font-size: 14px;
    line-height: 28px;
    color: #8d7f78;
}

.sdd-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 999px;
    background: #fff4ee;
    color: #ff7d46;
    font-size: 14px;
    font-weight: 600;
}

/* LISTS & COMMENTS SECTION */
.sdd-section-mb {
    margin-bottom: 24px;
}

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

.sdd-card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #3f3632;
}

.sdd-tabs {
    display: flex;
    gap: 8px;
}

.sdd-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #3f3632;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 153, 102, 0.22);
}

.sdd-tab.is-active {
    background: linear-gradient(135deg, #ff9966 0%, #ff7d46 100%);
    color: #fff;
    border-color: transparent;
}

.sdd-chapter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.sdd-chapter-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid #eadfd8;
    background: #faf7f4;
    font-size: 14px;
    color: #3f3632;
    transition: transform 0.2s ease;
}

.sdd-chapter-item:hover {
    transform: translateY(-2px);
}

.sdd-rec-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.sdd-rec-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.sdd-rec-cover {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    object-fit: cover;
    background: #f7ece6;
}

.sdd-rec-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3f3632;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sdd-btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #faf7f4;
    color: #8d7f78;
    font-size: 14px;
    font-weight: 500;
}

.sdd-comment-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.sdd-comment-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #eadfd8;
    background: #faf7f4;
}

.sdd-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff7d46;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sdd-comment-content {
    flex: 1;
    min-width: 0;
}

.sdd-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sdd-comment-author {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3f3632;
}

.sdd-comment-time {
    font-size: 12px;
    color: #8d7f78;
}

.sdd-comment-text {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 28px;
    color: #3f3632;
}

/* FOOTER */
.sdd-footer {
    border-top: 1px solid #eadfd8;
    background: #fffaf7;
}

.sdd-footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
}

.sdd-footer-info {
    min-width: 0;
}

.sdd-footer-brand {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #241d1b;
}

.sdd-footer-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #8d7f78;
}

.sdd-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #8d7f78;
}

.sdd-footer-links a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
