/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #184d17;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Header styles */
header {
    text-align: center;
}

h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.divider {
    height: 4px;
    width: 80px;
    background-color: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0 0 0;
}

.rounded-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rounded-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rounded-button svg,
.rounded-button i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .rounded-button {
        width: 200px;
        justify-content: center;
    }
}

/* Paper info section */
.paper-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.paper-info h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.author-container {
    max-width: 700px;
    margin: 0 auto;
}

.authors {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.affiliation {
    font-style: italic;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Abstract section */
.abstract {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.abstract h2 {
    font-family: 'Roboto Slab', serif;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.abstract h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.abstract-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Warning Box */
.warning-box {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 6px solid #ffc107;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.warning-content {
    flex: 1;
    color: #856404;
    font-size: 1rem;
    line-height: 1.6;
}

.warning-content strong {
    color: #664d03;
    font-weight: 600;
}

/* Section containers */
.section-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}

.section-container h2 {
    font-family: 'Roboto Slab', serif;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
}

.section-description {
    text-align: center;
    max-width: 1200px;
    margin: 1.5rem auto;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Video grid and containers */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Two-column grid for motivations section */
.ablation-section .video-grid:not(.ablation-subsection .video-grid) {
    grid-template-columns: repeat(2, 1fr);
}

/* Three-column grid for ablation subsections */
.ablation-subsection .video-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Two-column grid for Action Control Strategies subsection */
.action-control-subsection .video-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Two-column grid for Temporal RoPE Jump Index subsection */
.temporal-jump-subsection .video-grid {
    grid-template-columns: repeat(2, 1fr);
}

.video-container {
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.qualitative-subsection {
    margin-top: 2rem;
}

.qualitative-subsection + .qualitative-subsection {
    margin-top: 3rem;
}

.multi-action-grid {
    margin-top: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.video-container h3 {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}

/* Hide native video controls by default, show on hover */
.video-wrapper video {
    cursor: pointer;
}

.video-wrapper:hover video {
    cursor: default;
}

/* Hide controls panel by default */
.video-wrapper video::-webkit-media-controls-panel {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover video::-webkit-media-controls-panel {
    opacity: 1;
}

/* For Firefox - use JavaScript to toggle controls attribute */

.video-description {
    padding: 1rem;
    color: #444444;
    font-size: 0.95rem;
    background-color: var(--white);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
    width: 100%;
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #34495e;
    text-shadow: 0px 0px 1px rgba(0,0,0,0.05);
}

/* Specific section styling variations */

/* Compact video grid for teaser section */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.compact-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    width: 100%;
}

.compact-container .video-wrapper {
    width: 100%;
    margin: 0;
}

.compact-container video {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.compact-container .video-description {
    margin: 0;
    padding: 10px 0;
}

/* Mobile responsive grid */
@media (max-width: 768px) {
    .compact-grid {
        grid-template-columns: 1fr;
    }
}

/* Removing different colors for video headers in different sections */
/* 
.section-container:nth-of-type(4) .video-container h3 {
    background-color: var(--secondary-color);
}

.section-container:nth-of-type(5) .video-container h3 {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-container:nth-of-type(6) .video-container h3 {
    background-color: #333;
}

.section-container:nth-of-type(7) .video-container h3 {
    background-color: #444;
}
*/

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .paper-info h2 {
        font-size: 1.8rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .abstract-content {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

/* Ablation subsections */
.ablation-subsection {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #e0e0e0;
}

.ablation-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Stylish separator for ablation subsections */
.stylish-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    gap: 10px;
}

.separator-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
}

.separator-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background-color: var(--accent-color);
    display: inline-block;
}

.subsection-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.subsection-title sub {
    margin-left: 0.1em;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: 0;
    display: inline-block;
}

.video-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    align-items: center;
}

.speed-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 2px solid;
    background-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.restart-btn {
    border-color: #27ae60;
    color: #27ae60;
}

.restart-btn:hover {
    background-color: #27ae60;
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.play-btn {
    border-color: #27ae60;
    color: #27ae60;
}

.play-btn:hover {
    background-color: #27ae60;
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.stop-btn {
    border-color: #e74c3c;
    color: #e74c3c;
}

.stop-btn:hover {
    background-color: #e74c3c;
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.control-separator {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0.25rem;
    opacity: 0.5;
}

.speed-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.speed-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.speed-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
}

@media (max-width: 768px) {
    .subsection-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-controls {
        margin-left: 0;
    }
    
    .speed-controls {
        margin-left: 0;
    }
}

.subsection-description {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    max-width: 900px;
}

/* Math formula styling */
.math-formula {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.05em;
    background-color: rgba(245, 245, 245, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 0;
    letter-spacing: 0.5px;
}

.math-formula sub {
    font-size: 65%;
    position: relative;
    bottom: -0.4em;
    left: -1px;
    margin-right: 2px;
}

/* Parameter styling for [N=1] type notations */
.param {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: #2d3748;
    color: #38b2ac;
    padding: 1px 4px;
    margin: 0 3px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 500;
    display: inline-block;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.25px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    text-shadow: none;
    transition: all 0.2s ease;
}

.param:hover {
    background-color: #1a202c;
    color: #4fd1c5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Additional styles for ∞-RoPE specific elements */
.paper-title {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--white);
    margin: 0.5rem 0;
    font-family: 'Roboto Slab', serif;
    text-align: center;
}

.infinity {
    color: var(--accent-color);
    font-weight: 800;
}

/* Custom video card styles for comparison sections */
.video-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.video-card .video-header {
    padding: 1rem;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: var(--primary-color);
}

.video-card .video-header.ours {
    background-color: var(--primary-color);
}

.video-card .video-header.baseline1 {
    background-color: var(--primary-color);
}

.video-card .video-header.baseline2 {
    background-color: var(--primary-color);
}

.video-card .video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.video-card .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Prompt box styling */
.prompt-box {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
}

.prompt-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.prompt-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Method figure styling */
.method-figure {
    text-align: center;
    margin: 2rem 0;
}

.method-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.method-figure figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-style: italic;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Duration group styling */
.duration-group {
    margin-bottom: 3rem;
}

.duration-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Roboto Slab', serif;
}

.example-group {
    margin-bottom: 2.5rem;
}

.video-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .paper-title {
        font-size: 1.4rem;
    }
    
    .video-row {
        grid-template-columns: 1fr;
    }
}

/* Carousel Styles */
.comparison-carousel {
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto 40px auto;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.comparison-grid.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.comparison-grid .video-container {
    margin: 0;
    padding: 0;
    border-radius: 4px !important;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.comparison-grid .video-container h3 {
    padding: 8px 12px;
    font-size: 0.9rem;
    text-align: center;
    background-color: #000;
    color: var(--white);
    margin: 0;
    font-weight: 500;
    font-family: 'Roboto Slab', serif;
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
    position: relative;
    z-index: 2;
}

.comparison-grid .video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    z-index: 1;
}

.comparison-grid .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: none;
    margin: 0;
    padding: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: -50px;
}

.carousel-button.next {
    right: -50px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Action Control Comparison Grid - 1 row × 4 columns */
.action-control-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
}

@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .action-control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .action-control-grid {
        grid-template-columns: 1fr;
    }
    .carousel-button {
        width: 32px;
        height: 32px;
    }
    .carousel-button.prev {
        left: -40px;
    }
    .carousel-button.next {
        right: -40px;
    }
}

/* Duration System for Action Control Comparison */
.duration-system {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.duration-bar-container {
    margin-bottom: 1.5rem;
}

.duration-segments {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 4px;
}

.duration-segment {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 4px;
}

.duration-segment:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.segment-label {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    padding: 0.25rem 0;
}

.duration-progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.duration-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12 0%, #ff6d00 50%, #f39c12 100%);
    border-radius: 8px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5), 
                0 2px 4px rgba(255, 109, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.duration-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.prompt-display {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 10px;
    margin-top: 1rem;
    font-family: 'Roboto Slab', serif;
    border: 2px solid #f39c12;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: capitalize;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.prompt-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.prompt-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .duration-system {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .segment-label {
        font-size: 0.7rem;
    }
    
    .prompt-display {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
}
