:root {
    --bg: #0f172a;
    --sidebar-bg: #020617;
    --card-bg: #1e293b;
    --accent: #3b82f6;
    --text: #f8fafc;
    --breadcrumb: #64748b;

    --zh-red: #aa0404;
    --zh-blue: #018297;
    --zh-violet: #443988;
    --zh-darkblue: #1d2533;
}
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; background: var(--bg); 
    color: var(--text); 
    display: flex; 
    height: 100vh; 
    overflow: hidden;
}

/* Collapsible Sidebar */
#sidebar { 
    width: 64px; height: 100%; background: var(--sidebar-bg); 
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    flex-direction: column;  
    z-index: 10;
    position: fixed;
    
}
@media (hover: hover) {
    #sidebar:hover { width: 220px; }
    #sidebar a:hover { color: var(--accent); background: #1e293b; }
    #sidebar:hover .nav-label { opacity: 1; }
}
@media (hover: none) {
    #sidebar:focus { width: 220px; }
    #sidebar a:focus { color: var(--accent); background: #1e293b; }
    #sidebar:focus .nav-label { opacity: 1; }
}
#sidebar a { 
    padding: 18px 20px;
    text-decoration: none; color: #94a3b8; white-space: nowrap; transition: 0.2s;
}
#sidebar i { min-width: 24px; margin-right: 25px; }
#sidebar-bottom { margin-top: auto; border-top: 1px solid #1e293b;}
.nav-label { opacity: 0; transition: 0.2s; font-weight: 500; 
font-size: 1.3em;
vertical-align: top;
}
#sidebar-borrom {
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

#sidebar > a > span {
    margin-left: 0.2em;
}

/* Main Area */
main { flex: 1; padding: 40px; overflow-y: auto; padding-left: 80px; }

/* Breadcrumb (Easy Parent Jump) */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--breadcrumb); margin-bottom: 24px; font-size: 0.9rem; }
.breadcrumb span:last-child a {
    color: var(--accent);
    font-weight: bold;
}
.breadcrumb span a { 
    color: var(--breadcrumb); 
    text-decoration: none;
    transition: 0.2s;
}
.breadcrumb span:hover a {
  color: var(--text);
}

/* Media Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }

/* Poster Style Card */
.card { 
    /*background: var(--card-bg); border: 1px solid #334155; */
    border-top-left-radius: 25px; 
    border-top-right-radius: 25px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: 0.3s;
    background: linear-gradient(0deg, transparent 5px, #01829782 30%);
    padding-bottom: 10px;
}
.card:hover {
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.4);  border-color: var(--accent);*/
    transform: translateY(-8px);
    background: linear-gradient(0deg, transparent 5px, #01829782 10%);
}
.card-fixed:hover { transform: none; }
.card img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    border-bottom-left-radius: 25px; 
    border-bottom-right-radius: 25px; 
}
.card svg {
    width: 100%;
    height: 100px; 
    margin-top: 100px;
    margin-bottom: 100px;
    object-fit: cover; 
    border-bottom-left-radius: 25px; 
    border-bottom-right-radius: 25px; 
}
.zhtype-zh-video { 
    grid-column: span 2;
}
.card-title { padding: 12px; font-size: 0.85rem; text-align: center; }

.section-header { margin-bottom: 20px; border-bottom: 1px solid #334155; padding-bottom: 10px; }

.zhheader {
    vertical-align: top;
    display: inline;
    margin: 10px;
}

/* Info */
#info {
    margin: 0 auto;
    width: fit-content;
    margin-bottom: 3em;
}

#info > div {
    width: fit-content;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 0 1em;
}
#info > div > input[type=email], #info > div > input[type=password] {
    width: 18em;
    max-width: 100%;
}

/* ZH Button */
a.b, a:visited.b, a.nolink{
    text-decoration: none;
	display: inline-block;
	user-select: none;
}

.b, input[type=email], input[type=password]{
	height: 28px;
    font-size: 1.4em;
}

.b, input[type=submit]{
	border: 3px solid black;
	border-radius: 30px;		
	cursor: pointer;
    user-select: none;
}
.b {
	padding: 1px;
	padding-left: 10px;
	padding-right: 10px;
	margin: 5px;
	align-items: center;
    display: flex;
}

.file, .b, input[type=submit]{
        background: var(--zh-blue);
        border-color: var(--zh-blue);
        color: white;
}

/* Input */
input{
	border: 3px solid var(--zh-blue);
	font-size: 1.05em;
	border-radius: 30px;
	padding-left: 10px;
	padding-right: 10px;
	margin: 5px;
	max-width: 100%;
	color: var(--zh-darkblue);
}

/* Link */
a {
    text-decoration: underline dashed;
    cursor: pointer;
}

/* QR */
.qr {
    border-radius: 30px;
    border: solid 5px white;
    background: white;
}

/* Plyr */
.plyr--video {
    border-radius: 30px;
}
.plyr-prev, .plyr-next {
	background: transparent;
	border: none;
	cursor: pointer;
	color: white;
	padding: 4px;
    width: 32px;
    height: 32px;
}
.plyr-prev:hover, .plyr-next:hover {
	background-color: #00b2ff;
	border-radius: 4px;
}