/* Warm Creative Platform — ibaotu Orange & White Inspired */

:root {
    --ora: #f5820d;
    --ora2: #e07008;
    --ora3: #d46300;
    --ora-light: #fff8f0;
    --ora-mid: #ffd8a8;
    --ora-soft: #fff3e0;
    --yel: #ffb830;
    --yel2: #f0a820;
    --bg: #f7f5f2;
    --bg2: #fdfcfb;
    --bg3: #f0ede8;
    --sur: #ffffff;
    --bdr: #eeddd0;
    --bdr2: #e0ccc0;
    --txt: #2a1f14;
    --txt2: #5c4a38;
    --txt3: #a89080;
    --wht: #ffffff;
    --shadow: 0 2px 8px rgba(180,100,30,0.1);
    --shadow2: 0 4px 18px rgba(180,100,30,0.16);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --ease: all 0.2s ease;
    --maxw: 1060px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.ib-header {
    background: var(--sur);
    border-bottom: 2px solid var(--ora-mid);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.ib-hd-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ib-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    justify-content: center;
}

.ib-logo-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ib-logo-lnk::before {
    content: '▶';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--ora) 0%, var(--yel) 100%);
    color: var(--wht);
    font-size: 10px;
    border-radius: 8px;
    flex-shrink: 0;
    padding-left: 2px;
    box-shadow: 0 2px 6px rgba(245,130,13,0.35);
}

.ib-site-name {
    font-size: 23px;
    font-weight: 900;
    color: var(--ora);
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: 0.2px;
}

.ib-domain-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--ora-soft);
    border: 1px solid var(--ora-mid);
    border-radius: 20px;
}

.ib-domain-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--ora);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ib-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--txt);
    white-space: nowrap;
}

/* ===================== LAYOUT ===================== */
.ib-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.ib-sec {
    padding: 6px 0;
}

/* ===================== PROMO BANNER ===================== */
.ib-banner {
    margin: 5px 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ib-banner img {
    display: block;
    width: 100%;
}

/* ===================== CATEGORY NAV ===================== */
.ib-catbox {
    background: var(--sur);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.ib-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--bdr);
}

.ib-catrow:last-child { border-bottom: none; }

.ib-zone-lbl {
    width: 10%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--wht);
    padding: 9px 4px;
    border-right: 1px solid rgba(255,255,255,0.25);
    background: linear-gradient(160deg, var(--ora) 0%, var(--ora2) 100%);
    white-space: nowrap;
}

.ib-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
    background: var(--bg2);
}

.ib-zone-links a {
    display: inline-block;
    color: var(--txt2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bdr);
    background: var(--sur);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    transition: var(--ease);
}

.ib-zone-links a:hover,
.ib-zone-links a.active {
    background: var(--ora);
    color: var(--wht);
    border-color: var(--ora);
    box-shadow: 0 2px 8px rgba(245,130,13,0.28);
    font-weight: 600;
}

/* ===================== SEARCH ===================== */
.ib-srch {
    background: var(--sur);
    border: 1px solid var(--bdr);
    border-radius: var(--radius);
    padding: 9px 12px;
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.ib-srch form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}

.ib-srch input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 14px;
    border: 2px solid var(--bdr2);
    border-radius: var(--radius-sm);
    background: var(--bg2);
    color: var(--txt);
    font-size: 14px;
    outline: none;
    transition: var(--ease);
}

.ib-srch input[type="text"]:focus {
    border-color: var(--ora);
    background: var(--sur);
    box-shadow: 0 0 0 3px rgba(245,130,13,0.12);
}

.ib-srch input[type="text"]::placeholder { color: var(--txt3); }

.ib-srch button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--ora) 0%, var(--yel) 100%);
    color: var(--wht);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245,130,13,0.25);
}

.ib-srch button:hover {
    background: linear-gradient(135deg, var(--ora2) 0%, var(--ora) 100%);
    box-shadow: 0 4px 12px rgba(245,130,13,0.35);
    transform: translateY(-1px);
}

.ib-srch button:active { transform: translateY(0); }

/* ===================== TAG CLOUD ===================== */
.ib-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    margin-bottom: 6px;
    box-shadow: var(--shadow);
}

.ib-tagcloud a {
    padding: 4px 12px;
    background: var(--ora-soft);
    border-radius: 20px;
    color: var(--ora2);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--ora-mid);
    transition: var(--ease);
}

.ib-tagcloud a:hover {
    background: var(--ora);
    color: var(--wht);
    border-color: var(--ora);
}

/* ===================== SECTION BLOCKS ===================== */
.ib-blk { margin-bottom: 11px; }

.ib-blk-hd {
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bdr);
    position: relative;
    display: flex;
    align-items: center;
}

.ib-blk-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, var(--ora), var(--yel));
    border-radius: 2px;
}

.ib-blk-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt);
}

.ib-blk-title a {
    color: var(--txt);
    text-decoration: none;
    transition: var(--ease);
}

.ib-blk-title a:hover { color: var(--ora); }

/* ===================== FILM GRID ===================== */
.ib-filmgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}

.ib-filmgrid li {
    animation: ibFade 0.38s ease backwards;
    background: var(--sur);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--bdr);
    transition: var(--ease);
}

.ib-filmgrid li:hover {
    box-shadow: var(--shadow2);
    transform: translateY(-3px);
    border-color: var(--ora-mid);
}

.ib-filmgrid li:nth-child(1) { animation-delay: 0.03s; }
.ib-filmgrid li:nth-child(2) { animation-delay: 0.06s; }
.ib-filmgrid li:nth-child(3) { animation-delay: 0.09s; }
.ib-filmgrid li:nth-child(4) { animation-delay: 0.12s; }
.ib-filmgrid li:nth-child(5) { animation-delay: 0.15s; }
.ib-filmgrid li:nth-child(6) { animation-delay: 0.18s; }
.ib-filmgrid li:nth-child(7) { animation-delay: 0.21s; }
.ib-filmgrid li:nth-child(8) { animation-delay: 0.24s; }

@keyframes ibFade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ib-cover-lnk {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 12 / 7;
    background: var(--bg3);
    border-radius: var(--radius) var(--radius) 0 0;
}

.ib-cover-lnk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ib-cover-lnk:hover img { transform: scale(1.06); }

.ib-cover-lnk::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 38px;
    height: 38px;
    background: rgba(245,130,13,0.9);
    color: var(--wht);
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ease);
    z-index: 2;
    line-height: 38px;
    text-align: center;
    padding-left: 2px;
    box-shadow: 0 2px 10px rgba(245,130,13,0.5);
}

.ib-cover-lnk:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ib-card-desc {
    padding: 8px 9px;
}

.ib-card-desc h5 {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--txt2);
}

.ib-card-desc h5 a {
    color: var(--txt2);
    text-decoration: none;
    transition: var(--ease);
}

.ib-card-desc h5 a:hover { color: var(--ora); }

/* ===================== DETAIL PAGES ===================== */
.ib-detail-bar {
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    margin: 7px 0;
    word-break: break-all;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    border-left: 3px solid var(--ora);
    box-shadow: var(--shadow);
    line-height: 1.7;
}

.ib-detail-bar a {
    color: var(--ora);
    text-decoration: none;
    font-weight: 700;
    margin-right: 7px;
}

.ib-info-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 17px 19px;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    margin: 6px 0;
    box-shadow: var(--shadow);
    color: var(--txt2);
}

.ib-preview-area { margin-top: 12px; }

.ib-preview-area picture { display: block; width: 100%; }

.ib-preview-area picture img,
.ib-preview-area img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bdr);
}

/* ===================== ACTION BUTTONS ===================== */
.ib-btnrow {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 14px 8px;
    margin: 6px 0;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    flex-wrap: wrap;
    box-shadow: var(--shadow);
}

.ib-act-btn {
    display: inline-block;
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--ora) 0%, var(--yel) 100%);
    color: var(--wht);
    text-decoration: none;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--ease);
    box-shadow: 0 3px 10px rgba(245,130,13,0.3);
}

.ib-act-btn:hover {
    background: linear-gradient(135deg, var(--ora2) 0%, var(--ora) 100%);
    box-shadow: 0 5px 16px rgba(245,130,13,0.4);
    transform: translateY(-2px);
    color: var(--wht);
}

.ib-act-btn:active { transform: translateY(0); }

/* ===================== SHARE ===================== */
.ib-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    margin: 6px 0;
    flex-wrap: nowrap;
    box-shadow: var(--shadow);
}

.ib-share-url-box {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: var(--ora-soft);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    border: 1px solid var(--bdr);
    overflow: hidden;
}

.ib-share-lbl {
    font-size: 11px;
    color: var(--txt3);
    white-space: nowrap;
    font-weight: 600;
}

.ib-share-url {
    font-size: 12px;
    color: var(--ora2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.ib-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--ora) 0%, var(--yel) 100%);
    color: var(--wht);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245,130,13,0.25);
}

.ib-share-btn:hover {
    background: linear-gradient(135deg, var(--ora2) 0%, var(--ora) 100%);
}

.ib-share-ico { font-size: 14px; }

/* ===================== FRIENDLY LINKS ===================== */
.ib-flinks {
    padding: 10px 12px;
    background: var(--sur);
    border-radius: var(--radius);
    border: 1px solid var(--bdr);
    box-shadow: var(--shadow);
}

.ib-flinks dl { margin: 0; }

.ib-flinks dd { display: inline-block; margin: 3px 4px; }

.ib-flinks a { color: var(--txt3); text-decoration: none; transition: var(--ease); font-size: 13px; }

.ib-flinks a:hover { color: var(--ora); }

/* ===================== PAGINATION ===================== */
.ib-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 13px 0;
    align-items: center;
    justify-content: center;
}

.ib-pgbtn,
.ib-pgcur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.ib-pgbtn {
    background: var(--sur);
    color: var(--txt2);
    border: 1px solid var(--bdr);
}

.ib-pgbtn:hover {
    background: var(--ora);
    border-color: var(--ora);
    color: var(--wht);
    box-shadow: 0 2px 8px rgba(245,130,13,0.25);
}

.ib-pgcur {
    background: linear-gradient(135deg, var(--ora) 0%, var(--yel) 100%);
    color: var(--wht);
    border: 1px solid var(--ora);
    cursor: default;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245,130,13,0.3);
}

/* ===================== FOOTER ===================== */
.ib-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--bdr);
    margin-top: 16px;
    background: var(--sur);
}

.ib-footer p { margin: 5px 0; color: var(--txt3); font-size: 12px; }

.ib-footer a { color: var(--txt3); text-decoration: none; transition: var(--ease); }

.ib-footer a:hover { color: var(--ora); }

/* ===================== UTILITIES ===================== */
.ib-clr::after { content:""; display:table; clear:both; }

.ib-pconly  { display: block; }
.ib-mobonly { display: block; }

img[data-original] { background: var(--bg3); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .ib-wrap { padding: 0 8px; }
    .ib-header { padding: 0.45rem 0; }
    .ib-brand { gap: 10px; }
    .ib-site-name { font-size: 18px; }
    .ib-domain-val { font-size: 15px; }
    .ib-domain-lbl { font-size: 10px; }
    .ib-sec { padding: 5px 0; }
    .ib-logo-lnk::before { width: 24px; height: 24px; font-size: 9px; }

    /* Cat nav: label 15%, links 85%, 4 per row × 2 rows */
    .ib-catrow { flex-wrap: nowrap; }
    .ib-zone-lbl { width: 15%; font-size: 10px; padding: 7px 2px; letter-spacing: 0; }
    .ib-zone-links { width: 85%; gap: 4px; padding: 7px 4px; }
    .ib-zone-links a { font-size: 12px; padding: 4px 2px; width: calc((100% - 12px) / 4); }

    /* Film grid: 2 per row on mobile */
    .ib-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ib-card-desc h5 { font-size: 12px; }

    .ib-blk { margin-bottom: 9px; }
    .ib-blk-title { font-size: 15px; }

    .ib-tagcloud { padding: 8px 10px; gap: 5px; }
    .ib-tagcloud a { padding: 4px 10px; font-size: 12px; }

    /* Search: force no-wrap single line */
    .ib-srch { padding: 8px 10px; }
    .ib-srch form { gap: 5px; flex-wrap: nowrap; }
    .ib-srch input[type="text"] { min-width: 60px; font-size: 13px; padding: 7px 10px; }
    .ib-srch button { padding: 7px 10px; font-size: 12px; }

    .ib-btnrow { padding: 11px 6px; gap: 8px; }
    .ib-act-btn { padding: 10px 18px; font-size: 13px; }

    .ib-share { padding: 9px 10px; gap: 6px; }
    .ib-share-url-box { padding: 6px 9px; }
    .ib-share-btn { padding: 7px 12px; font-size: 12px; }

    .ib-pager { padding: 9px 0; gap: 4px; }
    .ib-pgbtn, .ib-pgcur { padding: 6px 11px; font-size: 12px; min-width: 32px; }

    .ib-footer { padding: 14px 0; margin-top: 13px; }

    .ib-pconly { display: none !important; }
}

@media (max-width: 480px) {
    .ib-site-name { font-size: 16px; }
    .ib-domain-val { font-size: 14px; }
    .ib-domain-strip { padding: 4px 10px; gap: 6px; }
    .ib-logo-lnk::before { width: 22px; height: 22px; font-size: 8px; }

    .ib-zone-lbl { width: 15%; font-size: 10px; padding: 6px 2px; }
    .ib-zone-links { width: 85%; gap: 3px; padding: 6px 3px; }
    .ib-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .ib-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .ib-card-desc h5 { font-size: 11px; }
    .ib-blk-title { font-size: 14px; }

    .ib-srch input[type="text"] { font-size: 12px; padding: 7px 8px; }
    .ib-srch button { padding: 7px 8px; font-size: 11px; }

    .ib-act-btn { padding: 9px 14px; font-size: 12px; }
    .ib-detail-bar { font-size: 13px; padding: 11px 13px; }
    .ib-info-panel { padding: 13px 14px; font-size: 13px; }
}

@media (min-width: 769px) {
    .ib-mobonly { display: none !important; }
    .ib-filmgrid { grid-template-columns: repeat(4, 1fr); }
}
