﻿/* Academic Journal Style - Clean Serif Paper and Navy Text */
:root {
    --bg-paper: #fafafa;
    --bg-content: #ffffff;
    --text-primary: #1a1a1a;
    --text-meta: #555555;
    --journal-blue: #1e3a8a;
    --journal-blue-hover: #0f172a;
    --border-dark: #333333;
    --border-light: #d1d5db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-primary);
    font-family: 'Times New Roman', Georgia, "Songti SC", "SimSun", serif;
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: var(--journal-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--journal-blue-hover);
    text-decoration: underline;
}

.container-journal {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-content);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    min-height: 100vh;
    padding: 0 40px;
}

/* Header & Nav */
header {
    border-bottom: 3px double var(--border-dark);
    padding: 30px 0 15px;
    text-align: center;
}

.journal-title-main {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.05em;
    font-family: 'Times New Roman', Georgia, serif;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.journal-title-sub {
    font-size: 13px;
    font-style: italic;
    color: var(--text-meta);
    margin-bottom: 20px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    flex: 1;
    max-width: 350px;
    min-width: 220px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    background-color: #fff;
    border: 1px solid var(--border-dark);
    border-right: none;
    padding: 6px 12px;
    color: var(--text-primary);
    outline: none;
    font-size: 13px;
    font-family: inherit;
}

.search-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid var(--border-dark);
    padding: 6px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    font-family: inherit;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

.nav-row {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    margin-top: 12px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-row::-webkit-scrollbar {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-meta);
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.nav-links a.active, .nav-links a:hover {
    color: #000;
    text-decoration: underline;
}

/* Academic Paper List Layout */
.main-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px auto;
    align-items: flex-start;
}

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

.sidebar {
    width: 250px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-light);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.journal-board-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.journal-board-header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.journal-volume-info {
    font-size: 12px;
    color: var(--text-meta);
    margin-top: 5px;
    font-style: italic;
}

.paper-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.paper-card {
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 25px;
}

.paper-card:last-child {
    border-bottom: none;
}

.paper-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.paper-authors {
    font-size: 12.5px;
    color: var(--text-meta);
    font-style: italic;
    margin-bottom: 10px;
}

.paper-abstract {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px;
    background-color: #fafafa;
    padding: 12px 15px;
    border-left: 3px solid var(--border-dark);
}

.paper-keywords {
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 12px;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.btn-paper-link {
    font-weight: bold;
    color: var(--journal-blue);
}

/* Play Page & DPlayer */
.play-journal-card {
    margin-bottom: 30px;
}

.play-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.play-meta-row {
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 20px;
    font-style: italic;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
}

.btn-journal-play {
    background-color: #fff;
    color: #000;
    border: 1px solid var(--border-dark);
    padding: 10px 24px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-journal-play:hover {
    background-color: #000;
    color: #fff;
}

.play-content-section {
    margin-top: 30px;
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 4px;
    margin-bottom: 12px;
    color: #000;
    text-transform: uppercase;
}

.vod-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-meta);
    font-style: italic;
}

.vod-desc-text {
    line-height: 1.7;
    font-size: 13.5px;
    color: #1a1a1a;
    text-align: justify;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 25px;
}

.widget-title {
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #000;
}

.sidebar-papers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-paper-item {
    font-size: 12.5px;
    line-height: 1.5;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-light);
}

.sidebar-paper-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-paper-rank {
    font-weight: bold;
    color: var(--text-meta);
    margin-right: 4px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.journal-tag {
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    color: var(--text-meta);
    font-size: 11px;
    padding: 3px 6px;
}

.journal-tag:hover {
    color: #000;
    border-color: var(--border-dark);
    text-decoration: none;
}

/* Footer styling */
footer {
    border-top: 3px double var(--border-dark);
    padding: 30px 0;
    color: var(--text-meta);
    text-align: center;
    font-size: 12px;
    margin-top: 50px;
    font-family: inherit;
}

.footer-hot-links {
    margin-bottom: 25px;
    text-align: left;
}

.footer-hot-links h4 {
    color: #000;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-hot-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-hot-item {
    font-size: 11px;
    background-color: var(--bg-paper);
    border: 1px solid var(--border-light);
    color: var(--text-meta);
    padding: 2px 6px;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--journal-blue);
    margin: 0 8px;
}

/* Floating Ads */
.floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }

.floating-ad-left {
    left: 15px;
}

.floating-ad-right {
    right: 15px;
}

.bottom-floating-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    background: #000;
    border: 1px solid var(--border-dark);
    border-bottom: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-floating-ad img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    display: block;
    margin: 0 auto;
}

.bottom-floating-ad-close {
    position: absolute;
    top: -12px;
    right: 10px;
    background: #fff;
    color: #000;
    border: 1px solid var(--border-dark);
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Ad pre-roll count down */
.ad-preroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ad-preroll-overlay a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.ad-preroll-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-preroll-timer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--border-dark);
    pointer-events: none;
}

.ad-preroll-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    pointer-events: none;
}

/* Pager */
.journal-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 25px 0;
}

.journal-pager a, .journal-pager span {
    background-color: #fff;
    border: 1px solid var(--border-light);
    color: var(--text-meta);
    padding: 6px 12px;
    font-size: 12px;
}

.journal-pager a:hover {
    border-color: var(--border-dark);
    color: #000;
    text-decoration: none;
}

.journal-pager span.current {
    background-color: var(--bg-paper);
    color: #000;
    border-color: var(--border-dark);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }
    .floating-ad { position: fixed; top: 50%; transform: translateY(-50%); width: 130px; z-index: 999999; }
    .container-journal {
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .floating-ad {
        display: block !important;
        width: 80px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
    }
}






/* GLOBAL FLOATING ADS FIX */
.floating-ad-container {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.floating-ad-container-left {
    left: 10px !important;
    right: auto !important;
}
.floating-ad-container-right {
    right: 10px !important;
    left: auto !important;
}

/* Hide standalone ads to prevent FOUC (Flash of Unstyled Content) layout shift */
.floating-ad, .floating-ad-esi {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reveal and format them correctly once JS wraps them in the container */
.floating-ad-container .floating-ad, 
.floating-ad-container .floating-ad-esi {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 140px !important;
    display: block !important;
    margin: 0 !important;
}

.floating-ad img, .floating-ad-esi img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 !important;
}
@media screen and (max-width: 768px) {
    .floating-ad-container .floating-ad, 
    .floating-ad-container .floating-ad-esi {
        width: 110px !important;
    }
}

