img.hitandrun {
    width: 35px;
    height: 12px;
    background: url(icons.gif) no-repeat -100px -171px;
    margin-left: 0.5em;
}
.spoiler-title {
    line-height: 28px;
    color: #4d6c99;
    cursor: pointer;
    font-weight: 700;
    background-color: rgba(77, 108, 153, 0.1);
    display: inline-block;
    padding: 0 10px;
}
.spoiler-content {
    display: inline-block;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}
.layui-layer {
    color: black;
}
.layer-form {
    padding: 10px 15px;
}
.layer-form .form-control-row input{
    padding: 4px;
}
.layer-form .form-control-row .label{
    margin-bottom: 4px;
}
.rainbow {
    text-align: center;
    text-decoration: underline;
    background: linear-gradient(to right, #6666ff, #0099ff , #00ff00, #ff3399, #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400% 100%;
}
.nexus-media-info-raw {
    padding: 0 0.5rem;
    border: none;
}
.nexus-media-info-raw .spoiler-title-box{
    text-align: center;
}
.nexus-media-info-raw pre {
    white-space: break-spaces;
    overflow-wrap: anywhere;
}
.text-muted {
    color: #7d7b7b
}
.codemain>pre {
    margin: 0;
}
.word-break-all {
    word-break: break-all;
}

.form-box {
    padding: 15px;
}
.form-control-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.form-control-row .label {
    width: 80px
}
.form-control-row .field {

}
.form-control-row input[type=text],textarea {
    width: 300px;
    padding: 4px;
}
.form-control-row input[type=checkbox] {
    vertical-align: sub;
}
/* 旧主题：防止logo遮挡导航菜单 + 隐藏头部广告（新主题CuteTop通过extras区域控制） */
table.head {
    position: relative;
    height: auto !important;
    min-height: 150px;
}

/* 确保表格行不会因广告隐藏而塌陷 */
table.head tbody tr {
    min-height: 150px;
}

/* 隐藏旧主题头部广告内容（保留 donate 按钮） */
table.head td.clear.nowrap iframe,
table.head td.clear.nowrap object,
table.head td.clear.nowrap embed {
    display: none !important;
}

/* 隐藏旧主题导航下方和页脚广告 */
div[id^="belownav"] span iframe,
div[id^="belownav"] span object,
div[id^="belownav"] span embed,
div[id^="footer"] span iframe,
div[id^="footer"] span object,
div[id^="footer"] span embed {
    display: none !important;
}
.logo_img img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}
table.head td.clear.nowrap {
    position: relative;
    z-index: 1;
}

/* 确保置顶种子标题悬停变色（覆盖主题 color:!important 继承） */
table.torrents tbody tr a[href*="details.php"]:hover,
table.torrents tbody tr a[href*="details.php"]:hover b {
    color: red !important;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    table.head {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        height: auto;
    }

    .logo_img {
        position: static;
        transform: none;
        margin: 0 auto 8px;
        text-align: center;
    }

    .logo_img img {
        max-width: min(72vw, 260px);
        max-height: 88px;
        height: auto;
    }

    table.head td.clear,
    table.head td.clear.nowrap {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }
}
